Class PasswordException

    • Constructor Detail

      • PasswordException

        public PasswordException()
        Creates a new PasswordException instance
    • Method Detail

      • getLdapException

        public LdapException getLdapException()
        If an LdapException was thrown causing this exception, that LdapException is returned. Otherwise null is returned.
        Returns:
        The LdapException that was thrown, or null.
      • getResultCode

        public ResultCodeEnum getResultCode()
        Returns the result code from the attempt to bind or modify the userPassword.
        Returns:
        The result code.
      • getPasswordPolicyError

        public PasswordPolicyErrorEnum getPasswordPolicyError()
        Returns the password policy error code if present, otherwise null.
        Returns:
        The password policy error code or null.
      • setLdapException

        public PasswordException setLdapException​(LdapException ldapException)
        Sets the wrapped exception
        Parameters:
        ldapException - The wrapped exception
        Returns:
        The wrapping exception
      • setPasswordPolicyError

        public PasswordException setPasswordPolicyError​(PasswordPolicyErrorEnum passwordPolicyError)
        Set the Password Policy error
        Parameters:
        passwordPolicyError - The Password Policy error
        Returns:
        The wrapping exception
      • setResultCode

        public PasswordException setResultCode​(ResultCodeEnum resultCode)
        Sets the LDAP Result code
        Parameters:
        resultCode - The LDAP error code
        Returns:
        The wrapping exception