@Component public class AuthenticationProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AuthenticationProcessor.PartialAuthnState
Provides information about partial state of authentication.
|
| Constructor and Description |
|---|
AuthenticationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static List<SessionParticipant> |
extractParticipants(AuthenticationResult... results)
Extracts and returns all remote
SessionParticipants from the AuthenticationResults. |
AuthenticatedEntity |
finalizeAfterPrimaryAuthentication(AuthenticationProcessor.PartialAuthnState state)
Should be used if the second step authentication is required to process second authenticator results
and retrieve a final
AuthenticatedEntity. |
AuthenticatedEntity |
finalizeAfterSecondaryAuthentication(AuthenticationProcessor.PartialAuthnState state,
AuthenticationResult result2)
Should be used if the second step authentication is required to process second authenticator results
and retrieve a final
AuthenticatedEntity. |
AuthenticationProcessor.PartialAuthnState |
processPrimaryAuthnResult(AuthenticationResult result,
AuthenticationOption authenticationOption)
Starting point: the result of the primary authenticator is verified.
|
public AuthenticationProcessor.PartialAuthnState processPrimaryAuthnResult(AuthenticationResult result, AuthenticationOption authenticationOption) throws AuthenticationException
AuthenticationOption selected, second authentication should be performed, what is returned.result - authenticationOption - AuthenticationExceptionpublic AuthenticatedEntity finalizeAfterPrimaryAuthentication(AuthenticationProcessor.PartialAuthnState state)
AuthenticatedEntity.state - public AuthenticatedEntity finalizeAfterSecondaryAuthentication(AuthenticationProcessor.PartialAuthnState state, AuthenticationResult result2) throws AuthenticationException
AuthenticatedEntity.primaryResult - AuthenticationExceptionpublic static List<SessionParticipant> extractParticipants(AuthenticationResult... results) throws AuthenticationException
SessionParticipants from the AuthenticationResults.results - AuthenticationExceptionCopyright © 2017 Unity. All rights reserved.