Class JndiLdapCredentialStore

    • Constructor Detail

      • JndiLdapCredentialStore

        public JndiLdapCredentialStore​(java.lang.String algorithm,
                                       java.lang.String entrySearchBaseDn,
                                       java.lang.String rolesSearchBaseDn)
        algorithm - Algorithm.
        context - DirContext.
        entrySearchBaseDn - Base dn for searching for entries.
        rolesSearchBaseDn - Base dn for searching for roles.
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Description copied from interface: CredentialStore

        Obtains the algorithm used to encrypt credentials within this CredentialStore.

        Should the return be null, blank or CredentialStore.NO_ALGORITHM then the password is considered to be stored in plain text. This is however only useful for the BASIC authentication scheme due to the nature of the other authentication schemes (such as DIGEST).

        It is expected that the credentials for DIGEST will be stored as the algorithm applied to userId:realm:password (as per RFC 2617). This is necessary as the password is never supplied and therefore for DIGEST this MUST return an algorithm.

        Specified by:
        getAlgorithm in interface CredentialStore