io.undertow.security.impl.SecurityContextImpl
| Modifier and Type | Method and Description |
|---|---|
| public void | addAuthenticationMechanism(AuthenticationMechanism
The mechanism to add mechanism)
Deprecated
for removal since 1.3.0. This method is now only applicable to
SecurityContext implementations that also implement the AuthenticationMechanismContext interface.
Adds an authentication mechanism to this context. |
| public boolean | Returns: true if either the request is successfully authenticated or if there is no failure validating the
current request so that the request should continue to be processed, false if authentication was not
completed and challenge has been prepared for the client.Performs authentication on the request. |
| public void | authenticationComplete(final Account
- The authenticated account, final String Account- The name of the mechanism used to authenticate the account. mechanismName, final boolean - If this mechanism requires caching cachingRequired)Called by the |
| public void | authenticationFailed(final String
- The message describing the failure. message, final String - The name of the mechanism reporting the failure. mechanismName)Called by the |
| public Account | Returns: TheAccount for the currently authenticated identity or null if no account is currently authenticated.Obtain the |
| public List | Returns: A list of all authentication mechanisms in this context
Deprecated
for removal since 1.3.0. Obtaining lists of mechanisms is discouraged, however there should not be a need to call this anyway.
|
| public IdentityManager | Returns: The associatedIdentityManager
Deprecated
for removal since 1.2.0. Authentication mechanisms that rely on the
IdentityManager should instead hold their own reference to it.
Obtain the associated |
| public String | |
| public boolean | |
| public boolean | Returns: true If authentication is requiredReturns true if authentication is required |
| public boolean | |
| public void | |
| public void | registerNotificationReceiver(final NotificationReceiver
- The receiver)NotificationReceiver to register.Register a |
| public void | removeNotificationReceiver(final NotificationReceiver
- The receiver)NotificationReceiver to remove.Remove a previously registered |
| public void |
| addAuthenticationMechanism | back to summary |
|---|---|
| public void addAuthenticationMechanism(AuthenticationMechanism mechanism)
Deprecated for removal since 1.3.0. This method is now only applicable to Adds an authentication mechanism to this context. When
| |
| authenticate | back to summary |
|---|---|
| public boolean authenticate() Performs authentication on the request.
If authentication is REQUIRED then setAuthenticationRequired() should be called before calling this method.
If the result indicates that a response has been sent to the client then no further attempts should be made to modify the
response. The caller of this method is responsible for ending the exchange.
If this method returns
| |
| authenticationComplete | back to summary |
|---|---|
| public void authenticationComplete(final Account account, final String mechanismName, final boolean cachingRequired) Called by the Note A successful verification of an account using the | |
| authenticationFailed | back to summary |
|---|---|
| public void authenticationFailed(final String message, final String mechanismName) Called by the | |
| getAuthenticatedAccount | back to summary |
|---|---|
| public Account getAuthenticatedAccount() Obtain the | |
| getAuthenticationMechanisms | back to summary |
|---|---|
| public List Deprecated for removal since 1.3.0. Obtaining lists of mechanisms is discouraged, however there should not be a need to call this anyway.
| |
| getIdentityManager | back to summary |
|---|---|
| public IdentityManager getIdentityManager()
Deprecated for removal since 1.2.0. Authentication mechanisms that rely on the Obtain the associated
| |
| getMechanismName | back to summary |
|---|---|
public String getMechanismName()
| |
| isAuthenticated | back to summary |
|---|---|
public boolean isAuthenticated()
| |
| isAuthenticationRequired | back to summary |
|---|---|
| public boolean isAuthenticationRequired() Returns true if authentication is required
| |
| login | back to summary |
|---|---|
| public boolean login(String username, String password) Attempts to log the user in using the provided credentials. This result will be stored in the current
This operation may block | |
| logout | back to summary |
|---|---|
| public void logout() de-authenticates the current exchange. | |
| registerNotificationReceiver | back to summary |
|---|---|
| public void registerNotificationReceiver(final NotificationReceiver receiver) Register a
| |
| removeNotificationReceiver | back to summary |
|---|---|
| public void removeNotificationReceiver(final NotificationReceiver receiver) Remove a previously registered
| |
| setAuthenticationRequired | back to summary |
|---|---|
| public void setAuthenticationRequired() Marks this request as requiring authentication. Authentication challenge headers will only be sent if this
method has been called. If | |