public interface AuthenticationProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfUserHasCredential(pl.edu.icm.unity.types.authn.AuthenticatorInstance authn,
long entityId) |
static List<SessionParticipant> |
extractParticipants(AuthenticationResult... results)
Extracts and returns all remote
SessionParticipant s from the AuthenticationResult s. |
AuthenticatedEntity |
finalizeAfterPrimaryAuthentication(PartialAuthnState state,
boolean skipSecondFactor)
Should be used if the second step authentication is not required: retrieve a final
AuthenticatedEntity . |
AuthenticatedEntity |
finalizeAfterSecondaryAuthentication(PartialAuthnState state,
AuthenticationResult result2)
Should be used if the second step authentication is required to process second authenticator results
and retrieve a final
AuthenticatedEntity . |
Authenticator |
getValidAuthenticatorForEntity(Collection<Authenticator> pool,
long entityId) |
PartialAuthnState |
processPrimaryAuthnResult(AuthenticationResult result,
AuthenticationFlow authenticationFlow,
String authnOptionId)
Starting point: the result of the primary authenticator is verified.
|
Authenticator getValidAuthenticatorForEntity(Collection<Authenticator> pool, long entityId)
boolean checkIfUserHasCredential(pl.edu.icm.unity.types.authn.AuthenticatorInstance authn, long entityId)
PartialAuthnState processPrimaryAuthnResult(AuthenticationResult result, AuthenticationFlow authenticationFlow, String authnOptionId) throws AuthenticationException
AuthenticationFlow
selected, second authentication should be performed, what is returned.AuthenticationException
AuthenticatedEntity finalizeAfterPrimaryAuthentication(PartialAuthnState state, boolean skipSecondFactor)
AuthenticatedEntity
.AuthenticatedEntity finalizeAfterSecondaryAuthentication(PartialAuthnState state, AuthenticationResult result2) throws AuthenticationException
AuthenticatedEntity
.primaryResult
- AuthenticationException
static List<SessionParticipant> extractParticipants(AuthenticationResult... results) throws AuthenticationException
SessionParticipant
s from the AuthenticationResult
s.results
- AuthenticationException
Copyright © 2018 Unity. All rights reserved.