Package org.wildfly.security.http
Class HttpAuthenticator
java.lang.Object
org.wildfly.security.http.HttpAuthenticator
A HTTP based authenticator responsible for performing the authentication of the current request based on the policies of the
associated
SecurityDomain.- Author:
- Darran Lofthouse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classABuilderto configure and create an instance ofHttpAuthenticator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanPerform authentication for the request.static HttpAuthenticator.Builderbuilder()Construct and return a newBuilderto configure and create an instance ofHttpAuthenticator.Perform a login for the supplied username and password using the pre-configured mechanism name.
-
Method Details
-
authenticate
Perform authentication for the request.- Returns:
trueif the call should be allowed to continue within the web server,falseif the call should be returning to the client.- Throws:
HttpAuthenticationException
-
login
Perform a login for the supplied username and password using the pre-configured mechanism name.- Parameters:
username- the username to use for authentication.password- the password to use for authentication.- Returns:
- A
SecurityIdentityis authentication and authorization is successful.
-
builder
Construct and return a newBuilderto configure and create an instance ofHttpAuthenticator.- Returns:
- a new
Builderto configure and create an instance ofHttpAuthenticator.
-