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 SummaryAll 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.CredentialLoaderaddBinaryIdentityAttributes, addRequiredIdentityAttributes, forIdentity, getCredentialAcquireSupport
 
- 
 
- 
- 
- 
Method Detail- 
forIdentityIdentityCredentialPersister 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 interface- CredentialLoader
- Parameters:
- dirContext- the- DirContextto use to connect to LDAP.
- distinguishedName- the distinguished name of the identity.
- attributes- the identity attributes requested by- CredentialLoader.addRequiredIdentityAttributes(Collection)
- Returns:
- An IdentityCredentialLoaderfor the specified identity identified by their distinguished name.
- Throws:
- RealmUnavailableException
 
 
- 
 
-