Interface IdentityCredentialPersister
-
- All Superinterfaces:
IdentityCredentialLoader
- All Known Implementing Classes:
OtpCredentialLoader.ForIdentityLoader
,UserPasswordCredentialLoader.ForIdentityLoader
public interface IdentityCredentialPersister extends IdentityCredentialLoader
ACredentialPersister
for 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 void
clearCredentials()
Clear all supported credentials of identity.boolean
getCredentialPersistSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
Determine whether a given credential type can be persisted by this credential persister.void
persistCredential(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, ornull
if any parameters are acceptable or the credential type does not support algorithm parameters- Returns:
true
if 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 RealmUnavailableException
Clear all supported credentials of identity.- Throws:
RealmUnavailableException
-
-