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 IdentityCredentialPersisterforIdentity(DirContext dirContext, String distinguishedName, Attributes attributes)Obtain anIdentityCredentialLoaderto 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 anIdentityCredentialLoaderto query the credentials for a specific identity. Note: By this point referrals relating to the identity should have been resolved so theDirContextFactoryshould be suitable for use with the supplieddistinguishedName- Specified by:
forIdentityin interfaceCredentialLoader- Parameters:
dirContext- theDirContextto use to connect to LDAP.distinguishedName- the distinguished name of the identity.attributes- the identity attributes requested byCredentialLoader.addRequiredIdentityAttributes(Collection)- Returns:
- An
IdentityCredentialLoaderfor the specified identity identified by their distinguished name. - Throws:
RealmUnavailableException
-
-