Class KeyStoreCredentialSource
java.lang.Object
org.wildfly.security.credential.source.impl.KeyStoreCredentialSource
- All Implemented Interfaces:
org.wildfly.security.credential.source.CredentialSource
public final class KeyStoreCredentialSource
extends Object
implements org.wildfly.security.credential.source.CredentialSource
A credential source which is backed by a key store entry.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.wildfly.security.credential.source.CredentialSource
NONE -
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreCredentialSource(KeyStore keyStore, String alias, KeyStore.ProtectionParameter protectionParameter) Construct a new instance.KeyStoreCredentialSource(org.wildfly.security.SecurityFactory<KeyStore.Entry> entryFactory) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescription<C extends org.wildfly.security.credential.Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) org.wildfly.security.auth.SupportLevelgetCredentialAcquireSupport(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, waitMethods inherited from interface org.wildfly.security.credential.source.CredentialSource
applyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
-
Constructor Details
-
KeyStoreCredentialSource
public KeyStoreCredentialSource(KeyStore keyStore, String alias, KeyStore.ProtectionParameter protectionParameter) Construct a new instance.- Parameters:
keyStore- the key store to reference (must not benull)alias- the name of the key store entry to read from (must not benull)protectionParameter- the protection parameter to use to access the key store entry, ornullfor none
-
KeyStoreCredentialSource
Construct a new instance.- Parameters:
entryFactory- the entry factory to use to instantiate the entry (must not benull)
-
-
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:
getCredentialAcquireSupportin interfaceorg.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:
getCredentialin interfaceorg.wildfly.security.credential.source.CredentialSource- Throws:
IOException
-