@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
SessionParticipant s from the AuthenticationResult s. |
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
- AuthenticationException
public AuthenticatedEntity finalizeAfterPrimaryAuthentication(AuthenticationProcessor.PartialAuthnState state)
AuthenticatedEntity
.state
- public AuthenticatedEntity finalizeAfterSecondaryAuthentication(AuthenticationProcessor.PartialAuthnState state, AuthenticationResult result2) throws AuthenticationException
AuthenticatedEntity
.primaryResult
- AuthenticationException
public static List<SessionParticipant> extractParticipants(AuthenticationResult... results) throws AuthenticationException
SessionParticipant
s from the AuthenticationResult
s.results
- AuthenticationException
Copyright © 2017 Unity. All rights reserved.