Interface IdentityCredentialPersister
-
- All Superinterfaces:
IdentityCredentialLoader
- All Known Implementing Classes:
OtpCredentialLoader.ForIdentityLoader,UserPasswordCredentialLoader.ForIdentityLoader
public interface IdentityCredentialPersister extends IdentityCredentialLoader
ACredentialPersisterfor persisting credentials into LDAP directory. Implementations of this interface are instantiated for a specific identity, as a result all of the methods on this interface are specific to that identity.- Author:
- Jan Kalina
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCredentials()Clear all supported credentials of identity.booleangetCredentialPersistSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)Determine whether a given credential type can be persisted by this credential persister.voidpersistCredential(Credential credential)Store credential of identity.-
Methods inherited from interface org.wildfly.security.auth.realm.ldap.IdentityCredentialLoader
getCredential, getCredentialAcquireSupport
-
-
-
-
Method Detail
-
getCredentialPersistSupport
boolean getCredentialPersistSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
Determine whether a given credential type can be persisted by this credential persister.- Parameters:
credentialType- the credential type (must not benull)algorithmName- the credential algorithm name, if anyparameterSpec- the algorithm parameters to match, ornullif any parameters are acceptable or the credential type does not support algorithm parameters- Returns:
trueif persisting of given credential is supported
-
persistCredential
void persistCredential(Credential credential) throws RealmUnavailableException
Store credential of identity.- Parameters:
credential- the credential- Throws:
RealmUnavailableException
-
clearCredentials
void clearCredentials() throws RealmUnavailableExceptionClear all supported credentials of identity.- Throws:
RealmUnavailableException
-
-