Package dev.relism.flash.ext.security
Interface AuthenticationMechanism
public interface AuthenticationMechanism
Reads one kind of credential off a request. A mechanism never writes the response: an anonymous
request is answered by the
AuthenticationEntryPoint, a rejected one by the 401 its
AuthenticationFailedException carries.-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(dev.relism.flash.models.Request req) The caller, ornullwhen the request carries no credential of this kind.default SecuritySchemescheme()How OpenAPI documents the credential and a 401 challenges for it;nullfor neither.
-
Method Details
-
authenticate
The caller, ornullwhen the request carries no credential of this kind.- Throws:
AuthenticationFailedException- the request carries one, and it is invalid
-
scheme
How OpenAPI documents the credential and a 401 challenges for it;nullfor neither.
-