Package com.unboundid.util.ssl
Class PKCS11KeyManager
- java.lang.Object
-
- javax.net.ssl.X509ExtendedKeyManager
-
- com.unboundid.util.ssl.WrapperKeyManager
-
- com.unboundid.util.ssl.PKCS11KeyManager
-
- All Implemented Interfaces:
javax.net.ssl.KeyManager
,javax.net.ssl.X509KeyManager
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class PKCS11KeyManager extends WrapperKeyManager
This class provides an SSL key manager that may be used to retrieve certificates from a PKCS#11 token.
-
-
Constructor Summary
Constructors Constructor Description PKCS11KeyManager(char[] keyStorePIN, java.lang.String certificateAlias)
Creates a new instance of this PKCS11 key manager that provides the ability to retrieve certificates from a PKCS#11 token.
-
Method Summary
-
Methods inherited from class com.unboundid.util.ssl.WrapperKeyManager
chooseClientAlias, chooseEngineClientAlias, chooseEngineServerAlias, chooseServerAlias, getCertificateAlias, getCertificateChain, getClientAliases, getPrivateKey, getServerAliases
-
-
-
-
Constructor Detail
-
PKCS11KeyManager
public PKCS11KeyManager(char[] keyStorePIN, java.lang.String certificateAlias) throws java.security.KeyStoreException
Creates a new instance of this PKCS11 key manager that provides the ability to retrieve certificates from a PKCS#11 token.- Parameters:
keyStorePIN
- The PIN to use to access the contents of the PKCS#11 token. It may benull
if no PIN is required.certificateAlias
- The nickname of the certificate that should be selected. It may benull
if any acceptable certificate found may be used.- Throws:
java.security.KeyStoreException
- If a problem occurs while initializing this key manager.
-
-