@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class PKCS11KeyManager extends WrapperKeyManager
Constructor and 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.
|
chooseClientAlias, chooseEngineClientAlias, chooseEngineServerAlias, chooseServerAlias, getCertificateAlias, getCertificateChain, getClientAliases, getPrivateKey, getServerAliases
public PKCS11KeyManager(char[] keyStorePIN, java.lang.String certificateAlias) throws java.security.KeyStoreException
keyStorePIN
- The PIN to use to access the contents of the
PKCS#11 token. It may be null
if no PIN
is required.certificateAlias
- The nickname of the certificate that should be
selected. It may be null
if any
acceptable certificate found may be used.java.security.KeyStoreException
- If a problem occurs while initializing this key
manager.