com.unboundid.util.ssl
Class PKCS11KeyManager

java.lang.Object
  extended by javax.net.ssl.X509ExtendedKeyManager
      extended by com.unboundid.util.ssl.WrapperKeyManager
          extended by com.unboundid.util.ssl.PKCS11KeyManager
All Implemented Interfaces:
javax.net.ssl.KeyManager, javax.net.ssl.X509KeyManager

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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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.
Throws:
java.security.KeyStoreException - If a problem occurs while initializing this key manager.