Enum Class StrongAuthPolicy.Preset
- All Implemented Interfaces:
Serializable, Comparable<StrongAuthPolicy.Preset>, Constable
- Enclosing class:
StrongAuthPolicy
The presets of ServerAdmin's dialog (section 2.2 of the design): a count, a device rule and a floor, every supported factor allowed, none mandatory, every user bound. A preset above the supported maximum (
isSupported(): the two of count 3 until the biometric device key is supported) is shown and never accepted.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionALL THREE where the client can, at least two.ALL THREE, or no sign-in.Off: v5's rules.ONE, the strongest available.ANY TWO.Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe count.final StrongAuthPolicy.DeviceThe device rule.final intThe floor.Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the preset can be set today: its count is within the supported maximum (StrongAuthSupport.maxCount()).policy()Gets the policy of the preset under the factors supported now (StrongAuthSupport): every supported factor allowed, none mandatory, every user bound.static StrongAuthPolicy.PresetReturns the enum constant of this class with the specified name.static StrongAuthPolicy.Preset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
OFF
Off: v5's rules.STRONG
ONE, the strongest available.STRONGER
ANY TWO.MAXIMUM
ALL THREE where the client can, at least two.MAXIMUM_STRICT
ALL THREE, or no sign-in.
Field Details
count
public final int countThe count.device
The device rule.floor
public final int floorThe floor.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
policy
Gets the policy of the preset under the factors supported now (StrongAuthSupport): every supported factor allowed, none mandatory, every user bound.- Returns:
- The policy,
StrongAuthPolicy.OFFforOFF.
isSupported
public boolean isSupported()Checks if the preset can be set today: its count is within the supported maximum (StrongAuthSupport.maxCount()).- Returns:
- true when a setting may name it.