Enum Class PrincipalFields

java.lang.Object
java.lang.Enum<PrincipalFields>
ch.tocco.nice2.userbase.api.PrincipalFields
All Implemented Interfaces:
Serializable, Comparable<PrincipalFields>, Constable

public enum PrincipalFields extends Enum<PrincipalFields>
  • Enum Constant Details

    • LAST_LOGIN_TIMESTAMP

      public static final PrincipalFields LAST_LOGIN_TIMESTAMP
      Timestamp set on every successful login.
    • LAST_PASSWORD_RESET_TIMESTAMP

      public static final PrincipalFields LAST_PASSWORD_RESET_TIMESTAMP
      Timestamp set each time a new password is set.
    • LAST_PASSWORD_DISPATCH_TIMESTAMP

      public static final PrincipalFields LAST_PASSWORD_DISPATCH_TIMESTAMP
      Timestamp set each time a password is sent via mail/etc.
    • FAILED_LOGIN_ATTEMPTS

      public static final PrincipalFields FAILED_LOGIN_ATTEMPTS
      Counter for failed login attempts. This is reset on successful login.
    • WRONG_PASSWORD_COUNT

      public static final PrincipalFields 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

      public static final PrincipalFields UNCONFIRMED_PASSWORD_DISPATCH
      Counter that counts each password-sending. This is reset on successful login.
  • Method Details

    • values

      public static PrincipalFields[] 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

      public static PrincipalFields valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFieldName

      public String getFieldName()
    • getNewValue

      public abstract Object getNewValue(@Nullable @Nullable Object oldValue)
    • getInitialValue

      public abstract Object getInitialValue()