Package pl.edu.icm.unity.types.authn
Class AuthenticationFlowDefinition
- java.lang.Object
-
- pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition
-
- All Implemented Interfaces:
NamedObject
public class AuthenticationFlowDefinition extends Object implements NamedObject
Configuration of a authentication flow. Contains first and second factor authenticators and policy which defines how the second factor should be enforced.- Author:
- P.Piernik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationFlowDefinition.Policy
-
Constructor Summary
Constructors Constructor Description AuthenticationFlowDefinition()
AuthenticationFlowDefinition(String name, AuthenticationFlowDefinition.Policy policy, Set<String> firstFactorAuthenticators)
AuthenticationFlowDefinition(String name, AuthenticationFlowDefinition.Policy policy, Set<String> firstFactorAuthenticators, List<String> secondFactorAuthenticators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<String>
getAllAuthenticators()
Set<String>
getFirstFactorAuthenticators()
String
getName()
AuthenticationFlowDefinition.Policy
getPolicy()
long
getRevision()
List<String>
getSecondFactorAuthenticators()
int
hashCode()
void
setFirstFactorAuthenticators(Set<String> firstFactorAuthenticators)
void
setName(String name)
void
setPolicy(AuthenticationFlowDefinition.Policy policy)
void
setRevision(long revision)
void
setSecondFactorAuthenticators(List<String> secondFactorAuthenticators)
-
-
-
Constructor Detail
-
AuthenticationFlowDefinition
public AuthenticationFlowDefinition()
-
AuthenticationFlowDefinition
public AuthenticationFlowDefinition(String name, AuthenticationFlowDefinition.Policy policy, Set<String> firstFactorAuthenticators, List<String> secondFactorAuthenticators)
-
AuthenticationFlowDefinition
public AuthenticationFlowDefinition(String name, AuthenticationFlowDefinition.Policy policy, Set<String> firstFactorAuthenticators)
-
-
Method Detail
-
setFirstFactorAuthenticators
public void setFirstFactorAuthenticators(Set<String> firstFactorAuthenticators)
-
setSecondFactorAuthenticators
public void setSecondFactorAuthenticators(List<String> secondFactorAuthenticators)
-
getPolicy
public AuthenticationFlowDefinition.Policy getPolicy()
-
setPolicy
public void setPolicy(AuthenticationFlowDefinition.Policy policy)
-
setName
public void setName(String name)
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
getRevision
public long getRevision()
-
setRevision
public void setRevision(long revision)
-
-