Class CallbackHandlerCredentialSource

java.lang.Object
org.wildfly.security.credential.source.impl.CallbackHandlerCredentialSource
All Implemented Interfaces:
org.wildfly.security.credential.source.CredentialSource

public final class CallbackHandlerCredentialSource extends Object implements org.wildfly.security.credential.source.CredentialSource
A credential source which is backed by a callback handler.
Author:
David M. Lloyd
  • Constructor Details

    • CallbackHandlerCredentialSource

      public CallbackHandlerCredentialSource(CallbackHandler callbackHandler)
      Construct a new instance.
      Parameters:
      callbackHandler - the callback handler to use (must not be null)
  • Method Details

    • getCredentialAcquireSupport

      public org.wildfly.security.auth.SupportLevel getCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
      Specified by:
      getCredentialAcquireSupport in interface org.wildfly.security.credential.source.CredentialSource
      Throws:
      IOException
    • getCredential

      public <C extends org.wildfly.security.credential.Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
      Specified by:
      getCredential in interface org.wildfly.security.credential.source.CredentialSource
      Throws:
      IOException