Package pl.edu.icm.unity.types.authn
Class AuthenticationOptionsSelector
- java.lang.Object
-
- pl.edu.icm.unity.types.authn.AuthenticationOptionsSelector
-
- All Implemented Interfaces:
Comparable<AuthenticationOptionsSelector>
public class AuthenticationOptionsSelector extends Object implements Comparable<AuthenticationOptionsSelector>
Represents selection of authentication options: either a single concrete one or all options under a common authenticator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationOptionsSelector.AuthenticationOptionsSelectorComparator
-
Field Summary
Fields Modifier and Type Field Description static String
ALL_OPTS
String
authenticatorKey
Optional<I18nString>
displayedName
String
optionKey
-
Constructor Summary
Constructors Constructor Description AuthenticationOptionsSelector(String authenticatorKey, String optionKey)
AuthenticationOptionsSelector(String authenticatorKey, String optionKey, Optional<I18nString> displayedName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticationOptionsSelector
allForAuthenticator(String authenticatorKey)
int
compareTo(AuthenticationOptionsSelector o2)
boolean
equals(Object other)
String
getRepresentationFallbackToConfigKey(MessageSource msg)
int
hashCode()
boolean
matchesAuthnOption(AuthenticationOptionKey authnOptionKey)
String
toStringEncodedSelector()
static AuthenticationOptionsSelector
valueOf(String stringEncodedSelector)
-
-
-
Field Detail
-
ALL_OPTS
public static final String ALL_OPTS
- See Also:
- Constant Field Values
-
authenticatorKey
public final String authenticatorKey
-
optionKey
public final String optionKey
-
displayedName
public final Optional<I18nString> displayedName
-
-
Method Detail
-
allForAuthenticator
public static AuthenticationOptionsSelector allForAuthenticator(String authenticatorKey)
-
valueOf
public static AuthenticationOptionsSelector valueOf(String stringEncodedSelector)
-
toStringEncodedSelector
public String toStringEncodedSelector()
-
matchesAuthnOption
public boolean matchesAuthnOption(AuthenticationOptionKey authnOptionKey)
-
compareTo
public int compareTo(AuthenticationOptionsSelector o2)
- Specified by:
compareTo
in interfaceComparable<AuthenticationOptionsSelector>
-
getRepresentationFallbackToConfigKey
public String getRepresentationFallbackToConfigKey(MessageSource msg)
-
-