Package pl.edu.icm.unity.types.authn
Enum RememberMePolicy
- java.lang.Object
-
- java.lang.Enum<RememberMePolicy>
-
- pl.edu.icm.unity.types.authn.RememberMePolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<RememberMePolicy>
public enum RememberMePolicy extends Enum<RememberMePolicy>
Defines how to remeberinging the user's login- Author:
- P.Piernik
-
-
Enum Constant Summary
Enum Constants Enum Constant Description allowFor2ndFactor
allowForWholeAuthn
disallow
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RememberMePolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static RememberMePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
disallow
public static final RememberMePolicy disallow
-
allowFor2ndFactor
public static final RememberMePolicy allowFor2ndFactor
-
allowForWholeAuthn
public static final RememberMePolicy allowForWholeAuthn
-
-
Method Detail
-
values
public static RememberMePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RememberMePolicy c : RememberMePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RememberMePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-