An Authenticator is responsible for checking requests and sending
response challenges in order to authenticate a request.
Various types of AuthenticationState are returned in order to
signal the next step in authentication.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Authenticator.
Authenticator Configuration |
| public static interface | Authenticator.
Authenticator Factory |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public default Constraint. | Returns: TheConstraint. to apply.The pathInContext to potentially constrain. pathInContext, Constraint.The existing authentication constraint for the pathInContext determined independently of existing,AuthenticatorFunction to get or create a getSession)Session.Get an |
| public default Request | prepareRequest(Request
the request to prepare for handling request, AuthenticationState The authentication for the request authenticationState)Called after |
| public void | setConfiguration(Authenticator.
the configuration configurationConfigure the Authenticator |
| public AuthenticationState | Returns: An Authentication. If Authentication is successful, this will be aSucceeded. If a response has
been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will
implement AuthenticationState..The request request, Response The response response, Callback the callback to use for writing a response callback)Validate a request |
| BASIC_AUTH | back to summary |
|---|---|
| public static final String BASIC_AUTH | |
| CERT_AUTH | back to summary |
|---|---|
| public static final String CERT_AUTH | |
| CERT_AUTH2 | back to summary |
|---|---|
| public static final String CERT_AUTH2 | |
| DIGEST_AUTH | back to summary |
|---|---|
| public static final String DIGEST_AUTH | |
| FORM_AUTH | back to summary |
|---|---|
| public static final String FORM_AUTH | |
| NEGOTIATE_AUTH | back to summary |
|---|---|
| public static final String NEGOTIATE_AUTH | |
| OPENID_AUTH | back to summary |
|---|---|
| public static final String OPENID_AUTH | |
| SPNEGO_AUTH | back to summary |
|---|---|
| public static final String SPNEGO_AUTH | |
| getAuthenticationType | back to summary |
|---|---|
public String getAuthenticationType()
| |
| getConstraintAuthentication | back to summary |
|---|---|
| public default Constraint. Get an
| |
| prepareRequest | back to summary |
|---|---|
| public default Request prepareRequest(Request request, AuthenticationState authenticationState) Called after
| |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(Authenticator. Configure the Authenticator
| |
| validateRequest | back to summary |
|---|---|
| public AuthenticationState validateRequest(Request request, Response response, Callback callback) throws ServerAuthException Validate a request
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public IdentityService | |
| public LoginService | |
| public String | Returns: Parameter value or nullparameter name param)Get a SecurityHandler init parameter |
| public Set | |
| public String | |
| public int | Returns: An interval in seconds; or 0 to not set the interval on authentication; or a negative number to make the session never timeout after authentication.Get the interval in seconds, which if non-zero, will be set
with |
| public boolean | Returns: true if the session ID should be renewed on authenticationShould session ID be renewed on authentication. |
| getAuthenticationType | back to summary |
|---|---|
| public String getAuthenticationType() | |
| getIdentityService | back to summary |
|---|---|
| public IdentityService getIdentityService() | |
| getLoginService | back to summary |
|---|---|
| public LoginService getLoginService() | |
| getParameter | back to summary |
|---|---|
| public String getParameter(String param) Get a SecurityHandler init parameter | |
| getParameterNames | back to summary |
|---|---|
| public Set Get a SecurityHandler init parameter names | |
| getRealmName | back to summary |
|---|---|
| public String getRealmName() | |
| getSessionMaxInactiveIntervalOnAuthentication | back to summary |
|---|---|
| public int getSessionMaxInactiveIntervalOnAuthentication() Get the interval in seconds, which if non-zero, will be set
with
| |
| isSessionRenewedOnAuthentication | back to summary |
|---|---|
| public boolean isSessionRenewedOnAuthentication() Should session ID be renewed on authentication.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Authenticator. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public IdentityService | |
| public LoginService | |
| public String | getParameter(String
parameter name param)Implements org. Get a SecurityHandler init parameter |
| public Set | getParameterNames()
Implements org. Get a SecurityHandler init parameter names |
| public String | |
| public int | getSessionMaxInactiveIntervalOnAuthentication()
Implements org. Get the interval in seconds, which if non-zero, will be set
with |
| public boolean | isSessionRenewedOnAuthentication()
Implements org. Should session ID be renewed on authentication. |
| _configuration | back to summary |
|---|---|
| private final Authenticator. | |
| Wrapper | back to summary |
|---|---|
| public Wrapper(Authenticator. | |
| getAuthenticationType | back to summary |
|---|---|
| public String getAuthenticationType() Implements org.
| |
| getIdentityService | back to summary |
|---|---|
| public IdentityService getIdentityService() Implements org.
| |
| getLoginService | back to summary |
|---|---|
| public LoginService getLoginService() Implements org.
| |
| getParameter | back to summary |
|---|---|
| public String getParameter(String param) Implements org. Doc from org. Get a SecurityHandler init parameter | |
| getParameterNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Get a SecurityHandler init parameter names | |
| getRealmName | back to summary |
|---|---|
| public String getRealmName() Implements org.
| |
| getSessionMaxInactiveIntervalOnAuthentication | back to summary |
|---|---|
| public int getSessionMaxInactiveIntervalOnAuthentication() Implements org. Doc from org. Get the interval in seconds, which if non-zero, will be set
with
| |
| isSessionRenewedOnAuthentication | back to summary |
|---|---|
| public boolean isSessionRenewedOnAuthentication() Implements org. Doc from org. Should session ID be renewed on authentication.
| |
| Modifier and Type | Method and Description |
|---|---|
| public Authenticator |
| getAuthenticator | back to summary |
|---|---|
| public Authenticator getAuthenticator(Server server, Context context, Authenticator. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public void | setConfiguration(Authenticator.
the configuration configurationImplements org. Configure the Authenticator |
| public AuthenticationState | validateRequest(Request
The request request, Response The response response, Callback the callback to use for writing a response callback)Implements org. Validate a request |
| NoOp | back to summary |
|---|---|
| public NoOp() | |
| getAuthenticationType | back to summary |
|---|---|
| public String getAuthenticationType() Implements org.
| |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(Authenticator. Implements org. Doc from org. Configure the Authenticator
| |
| validateRequest | back to summary |
|---|---|
| public AuthenticationState validateRequest(Request request, Response response, Callback callback) throws ServerAuthException Implements org. Doc from org. Validate a request
| |