Interface CredentialPersister
-
- All Superinterfaces:
CredentialLoader
- All Known Implementing Classes:
OtpCredentialLoader
,UserPasswordCredentialLoader
public interface CredentialPersister extends CredentialLoader
Within LDAP credentials could be stored in different ways, splitting out a CredentialPersister allows different strategies to be plugged into the realm.- Author:
- Jan Kalina
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdentityCredentialPersister
forIdentity(DirContext dirContext, String distinguishedName, Attributes attributes)
Obtain anIdentityCredentialLoader
to query the credentials for a specific identity.-
Methods inherited from interface org.wildfly.security.auth.realm.ldap.CredentialLoader
addBinaryIdentityAttributes, addRequiredIdentityAttributes, forIdentity, getCredentialAcquireSupport
-
-
-
-
Method Detail
-
forIdentity
IdentityCredentialPersister forIdentity(DirContext dirContext, String distinguishedName, Attributes attributes) throws RealmUnavailableException
Obtain anIdentityCredentialLoader
to query the credentials for a specific identity. Note: By this point referrals relating to the identity should have been resolved so theDirContextFactory
should be suitable for use with the supplieddistinguishedName
- Specified by:
forIdentity
in interfaceCredentialLoader
- Parameters:
dirContext
- theDirContext
to use to connect to LDAP.distinguishedName
- the distinguished name of the identity.attributes
- the identity attributes requested byCredentialLoader.addRequiredIdentityAttributes(Collection)
- Returns:
- An
IdentityCredentialLoader
for the specified identity identified by their distinguished name. - Throws:
RealmUnavailableException
-
-