Class InMemoryDirectoryServerPassword

    • Method Detail

      • getStoredPassword

        public ASN1OctetString getStoredPassword()
        Retrieves the password as it is (or has the potential to be) stored in the in-memory directory server. If the isEncoded() method returns true, then the stored password will be treated as an encoded password. Otherwise, it will be treated as a clear-text password with no encoding or output formatting.
        Returns:
        The password as it is (or has the potential to be) stored in the in-memory directory server.
      • getAttributeName

        public java.lang.String getAttributeName()
        Retrieves the name of the attribute with which the stored password is associated.
        Returns:
        The name of the attribute with which the stored password is associated.
      • isEncoded

        public boolean isEncoded()
        Indicates whether the stored password is encoded or in the clear.
        Returns:
        true if the stored password is encoded, or false if it is the clear.
      • getPasswordEncoder

        public InMemoryPasswordEncoder getPasswordEncoder()
        Retrieves the password encoder that should be used to interact with the stored password.
        Returns:
        The password encoder that should be used to interact with the stored password, or null if the password is not encoded.
      • matchesClearPassword

        public boolean matchesClearPassword​(ASN1OctetString clearPassword)
                                     throws LDAPException
        Indicates whether this password matches the provided clear-text password.
        Parameters:
        clearPassword - The clear-text password for which to make the determination.
        Returns:
        true if this password matches the provided clear-text password, or false if not.
        Throws:
        LDAPException - If a problem is encountered while trying to make the determination.