Class PasswordExpirationAccountState


  • public class PasswordExpirationAccountState
    extends AccountState
    Represents the state of an account in a directory that implements: http://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00. Note that the warning returned by this implementation always returns -1 for logins remaining as this specification doesn't include that feature.
    • Constructor Detail

      • PasswordExpirationAccountState

        public PasswordExpirationAccountState​(ZonedDateTime exp)
        Creates a new password expiration account state.
        Parameters:
        exp - account expiration
      • PasswordExpirationAccountState

        public PasswordExpirationAccountState​(PasswordExpirationAccountState.Error error)
        Creates a new password expiration account state.
        Parameters:
        error - containing authentication failure details
    • Method Detail

      • getPasswordExpirationError

        public PasswordExpirationAccountState.Error getPasswordExpirationError()
        Returns the password expiration error for this account state.
        Returns:
        password expiration error