Class CallbackHandlerCredentialSource
- java.lang.Object
-
- org.wildfly.security.credential.source.impl.CallbackHandlerCredentialSource
-
- All Implemented Interfaces:
CredentialSource
public final class CallbackHandlerCredentialSource extends Object implements CredentialSource
A credential source which is backed by a callback handler.- Author:
- David M. Lloyd
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.credential.source.CredentialSource
NONE
-
-
Constructor Summary
Constructors Constructor Description CallbackHandlerCredentialSource(CallbackHandler callbackHandler)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)SupportLevelgetCredentialAcquireSupport(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, wait
-
Methods inherited from interface org.wildfly.security.credential.source.CredentialSource
applyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
-
-
-
-
Constructor Detail
-
CallbackHandlerCredentialSource
public CallbackHandlerCredentialSource(CallbackHandler callbackHandler)
Construct a new instance.- Parameters:
callbackHandler- the callback handler to use (must not benull)
-
-
Method Detail
-
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
-
-