Class CredentialStoreCredentialSource

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

public final class CredentialStoreCredentialSource extends Object implements org.wildfly.security.credential.source.CredentialSource
A credential source which is backed by an entry in a credential store.
Author:
David M. Lloyd, Peter Skopek
  • Field Summary

    Fields inherited from interface org.wildfly.security.credential.source.CredentialSource

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CredentialStoreCredentialSource(org.wildfly.security.credential.store.CredentialStore credentialStore, String alias)
    Construct a new instance.
    CredentialStoreCredentialSource(org.wildfly.security.SecurityFactory<org.wildfly.security.credential.store.CredentialStore> credentialStoreFactory, String alias)
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends org.wildfly.security.credential.Credential>
    C
    getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
     
    org.wildfly.security.auth.SupportLevel
    getCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
     

    Methods inherited from class 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 Details

    • CredentialStoreCredentialSource

      public CredentialStoreCredentialSource(org.wildfly.security.SecurityFactory<org.wildfly.security.credential.store.CredentialStore> credentialStoreFactory, String alias)
      Construct a new instance.
      Parameters:
      credentialStoreFactory - the credential store factory (must not be null)
      alias - the credential store factory alias (must not be null)
    • CredentialStoreCredentialSource

      public CredentialStoreCredentialSource(org.wildfly.security.credential.store.CredentialStore credentialStore, String alias)
      Construct a new instance.
      Parameters:
      credentialStore - the literal credential store (must not be null)
      alias - the credential store factory alias (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