Class FactoryCredentialSource
java.lang.Object
org.wildfly.security.credential.source.impl.FactoryCredentialSource
- All Implemented Interfaces:
CredentialSource
A credential source which is backed by a credential security factory.
- Author:
- Martin Mazanek
-
Field Summary
Fields inherited from interface org.wildfly.security.credential.source.CredentialSource
NONE -
Constructor Summary
ConstructorsConstructorDescriptionFactoryCredentialSource(SecurityFactory<? extends Credential> credentialFactory) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescription<C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.credential.source.CredentialSource
applyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
-
Constructor Details
-
FactoryCredentialSource
Construct a new instance.- Parameters:
credentialFactory- the entry factory to use to instantiate the entry (must not benull)
-
-
Method Details
-
getCredentialAcquireSupport
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException - Specified by:
getCredentialAcquireSupportin interfaceCredentialSource- Throws:
IOException
-
getCredential
public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException - Specified by:
getCredentialin interfaceCredentialSource- Throws:
IOException
-