Package ch.tocco.nice2.userbase.api
Enum Class PrincipalFields
- All Implemented Interfaces:
Serializable
,Comparable<PrincipalFields>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCounter for failed login attempts.Timestamp set on every successful login.Timestamp set each time a password is sent via mail/etc.Timestamp set each time a new password is set.Counter that counts each password-sending.Counter that gets incremented each time when a wrong password is entered. -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
abstract Object
getNewValue
(@Nullable Object oldValue) static PrincipalFields
Returns the enum constant of this class with the specified name.static PrincipalFields[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAST_LOGIN_TIMESTAMP
Timestamp set on every successful login. -
LAST_PASSWORD_RESET_TIMESTAMP
Timestamp set each time a new password is set. -
LAST_PASSWORD_DISPATCH_TIMESTAMP
Timestamp set each time a password is sent via mail/etc. -
FAILED_LOGIN_ATTEMPTS
Counter for failed login attempts. This is reset on successful login. -
WRONG_PASSWORD_COUNT
Counter that gets incremented each time when a wrong password is entered. It is reset when a correct password is entered (this happens before the login is completed (for example before 2FA). -
UNCONFIRMED_PASSWORD_DISPATCH
Counter that counts each password-sending. This is reset on successful login.
-
-
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
-
getFieldName
-
getNewValue
-
getInitialValue
-