Class AuthenticationFlow
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.AuthenticationFlow
-
public class AuthenticationFlow extends java.lang.Object
Stores information about a authentication flow, as configured by administrator and selectable by a user or client. The flow contains a first factor authenticators, policy and optionally second factor authenticators. The policy decide how second factor authenticator is enforced.This class is a working instance of what can be described by the
AuthenticationFlowDefinition
.Implementation note: RBA is unimplemented yet. In future it will be extended.
- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFlow(java.lang.String name, pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition.Policy policy, java.util.Set<AuthenticatorInstance> firstFactorAuthenticators, java.util.List<AuthenticatorInstance> secondFactorAuthenticators, long revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIfAuthenticatorsAreAmongSupported(java.util.Set<java.lang.String> supportedBindings)
void
destroy()
java.util.Set<AuthenticatorInstance>
getAllAuthenticators()
java.util.Set<AuthenticatorInstance>
getFirstFactorAuthenticators()
java.lang.String
getId()
pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition.Policy
getPolicy()
long
getRevision()
java.util.List<AuthenticatorInstance>
getSecondFactorAuthenticators()
-
-
-
Constructor Detail
-
AuthenticationFlow
public AuthenticationFlow(java.lang.String name, pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition.Policy policy, java.util.Set<AuthenticatorInstance> firstFactorAuthenticators, java.util.List<AuthenticatorInstance> secondFactorAuthenticators, long revision)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getFirstFactorAuthenticators
public java.util.Set<AuthenticatorInstance> getFirstFactorAuthenticators()
-
getSecondFactorAuthenticators
public java.util.List<AuthenticatorInstance> getSecondFactorAuthenticators()
- Returns:
- 2ndary (typically 2nd factor) authenticator. Can be null if not defined.
-
getPolicy
public pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition.Policy getPolicy()
-
destroy
public void destroy()
-
getAllAuthenticators
public java.util.Set<AuthenticatorInstance> getAllAuthenticators()
-
getRevision
public long getRevision()
-
checkIfAuthenticatorsAreAmongSupported
public void checkIfAuthenticatorsAreAmongSupported(java.util.Set<java.lang.String> supportedBindings) throws pl.edu.icm.unity.exceptions.WrongArgumentException
- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentException
-
-