| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | LoginAuthenticator.
This Authentication represents a just completed authentication, that has sent a response, typically to redirect the client to the original request target.. |
| public static class | LoginAuthenticator.
Base class for representing a successful authentication state. |
| Modifier and Type | Field and Description |
|---|---|
| protected IdentityService | |
| protected LoginService | |
| private int | |
| private boolean | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public LoginService | |
| public UserIdentity | login(String
the username of the client to be authenticated username, Object the user's credential password, Request the inbound request that needs authentication request, Response response)If the UserIdentity returned from
|
| public void | |
| public void | setConfiguration(Authenticator.
the configuration configurationImplements org. Configure the Authenticator |
| protected void | updateSession(Request
the request httpRequest, Response the response httpResponse)Update the session on authentication. |
| _identityService | back to summary |
|---|---|
| protected IdentityService _identityService | |
| _loginService | back to summary |
|---|---|
| protected LoginService _loginService | |
| _sessionMaxInactiveIntervalOnAuthentication | back to summary |
|---|---|
| private int _sessionMaxInactiveIntervalOnAuthentication | |
| _sessionRenewedOnAuthentication | back to summary |
|---|---|
| private boolean _sessionRenewedOnAuthentication | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| LoginAuthenticator | back to summary |
|---|---|
| protected LoginAuthenticator() | |
| getLoginService | back to summary |
|---|---|
| public LoginService getLoginService() | |
| login | back to summary |
|---|---|
| public UserIdentity login(String username, Object password, Request request, Response response) If the UserIdentity returned from
| |
| logout | back to summary |
|---|---|
| public void logout(Request request, Response response) | |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(Authenticator. Implements org. Doc from org. Configure the Authenticator
| |
| updateSession | back to summary |
|---|---|
| protected void updateSession(Request httpRequest, Response httpResponse) Update the session on authentication. The session is changed to a new instance with a new ID if and only if:
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AuthenticationState. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AuthenticationState. | authenticate(Request
The request to authenticate request)Implements org. Authenticate the request using any credentials already associated with the request. |
| public AuthenticationState | authenticate(Request
The request to authenticate request, Response The response to use for a challenge. response, Callback The callback to complete if a challenge is sent callback)Implements org. Authenticate the request using any credentials already associated with the request or challenging if necessary. |
| public IdentityService. | |
| public AuthenticationState. | login(String
The username to validate username, Object The credential to validate password, Request The request to authenticate request, Response The response, which may be updated if the session ID is changed. response)Implements org. Authenticate the request with the passed credentials |
| public void | logout(Request
The authenticated request request, Response The associated response, which may be updated to clear a session ID. response)Implements org. Logout the authenticated user. |
| _delegate | back to summary |
|---|---|
| private final AuthenticationState. | |
| LoggedOutAuthentication | back to summary |
|---|---|
| public LoggedOutAuthentication(LoginAuthenticator authenticator) | |
| authenticate | back to summary |
|---|---|
| public AuthenticationState. Implements org. Doc from org. Authenticate the request using any credentials already associated with the request.
No challenge can be sent. If the login is successful, then the
| |
| authenticate | back to summary |
|---|---|
| public AuthenticationState authenticate(Request request, Response response, Callback callback) Implements org. Doc from org. Authenticate the request using any credentials already associated with the request or
challenging if necessary. If the login is successful, then the
| |
| getAssociation | back to summary |
|---|---|
| public IdentityService. Implements org.
| |
| login | back to summary |
|---|---|
| public AuthenticationState. Implements org. Doc from org. Authenticate the request with the passed credentials
| |
| logout | back to summary |
|---|---|
| public void logout(Request request, Response response) Implements org. Doc from org. Logout the authenticated user. | |
| Access | Constructor and Description |
|---|---|
| public |
| UserAuthenticationSent | back to summary |
|---|---|
| public UserAuthenticationSent(String method, UserIdentity userIdentity) | |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected transient UserIdentity | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public UserIdentity | |
| public boolean | isUserInRole(String
The role to check. role)Implements org.
|
| public void | logout(Request
the request request, Response the response response)Implements org. Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null. |
| public String |
| _authenticationType | back to summary |
|---|---|
| protected String _authenticationType | |
| _userIdentity | back to summary |
|---|---|
| protected transient UserIdentity _userIdentity | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| UserAuthenticationSucceeded | back to summary |
|---|---|
| public UserAuthenticationSucceeded(String authenticationType, UserIdentity userIdentity) | |
| getAuthenticationType | back to summary |
|---|---|
| public String getAuthenticationType() Implements org.
| |
| getUserIdentity | back to summary |
|---|---|
| public UserIdentity getUserIdentity() Implements org.
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Implements org.
| |
| logout | back to summary |
|---|---|
| public void logout(Request request, Response response) Implements org. Doc from org. Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |