|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ssl.X509ExtendedKeyManager
com.unboundid.util.ssl.WrapperKeyManager
com.unboundid.util.ssl.KeyStoreKeyManager
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class KeyStoreKeyManager
This class provides an SSL key manager that may be used to retrieve certificates from a key store file. By default it will use the default key store format for the JVM (e.g., "JKS" for Sun-provided Java implementations), but alternate formats like PKCS12 may be used.
Constructor Summary | |
---|---|
KeyStoreKeyManager(java.io.File keyStoreFile,
char[] keyStorePIN)
Creates a new instance of this key store key manager that provides the ability to retrieve certificates from the specified key store file. |
|
KeyStoreKeyManager(java.io.File keyStoreFile,
char[] keyStorePIN,
java.lang.String keyStoreFormat,
java.lang.String certificateAlias)
Creates a new instance of this key store key manager that provides the ability to retrieve certificates from the specified key store file. |
|
KeyStoreKeyManager(java.lang.String keyStoreFile,
char[] keyStorePIN)
Creates a new instance of this key store key manager that provides the ability to retrieve certificates from the specified key store file. |
|
KeyStoreKeyManager(java.lang.String keyStoreFile,
char[] keyStorePIN,
java.lang.String keyStoreFormat,
java.lang.String certificateAlias)
Creates a new instance of this key store key manager that provides the ability to retrieve certificates from the specified key store file. |
Method Summary | |
---|---|
java.lang.String |
getKeyStoreFile()
Retrieves the path to the key store file to use. |
java.lang.String |
getKeyStoreFormat()
Retrieves the name of the key store file format. |
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 |
---|
public KeyStoreKeyManager(java.io.File keyStoreFile, char[] keyStorePIN) throws java.security.KeyStoreException
keyStoreFile
- The path to the key store file to use. It must not
be null
.keyStorePIN
- The PIN to use to access the contents of the key
store. It may be null
if no PIN is required.
java.security.KeyStoreException
- If a problem occurs while initializing this key
manager.public KeyStoreKeyManager(java.lang.String keyStoreFile, char[] keyStorePIN) throws java.security.KeyStoreException
keyStoreFile
- The path to the key store file to use. It must not
be null
.keyStorePIN
- The PIN to use to access the contents of the key
store. It may be null
if no PIN is required.
java.security.KeyStoreException
- If a problem occurs while initializing this key
manager.public KeyStoreKeyManager(java.io.File keyStoreFile, char[] keyStorePIN, java.lang.String keyStoreFormat, java.lang.String certificateAlias) throws java.security.KeyStoreException
keyStoreFile
- The path to the key store file to use. It must
not be null
.keyStorePIN
- The PIN to use to access the contents of the key
store. It may be null
if no PIN is
required.keyStoreFormat
- The format to use for the key store. It may be
null
if the default format should be
used.certificateAlias
- The nickname of the certificate that should be
selected. It may be null
if any
acceptable certificate found in the keystore may
be used.
java.security.KeyStoreException
- If a problem occurs while initializing this key
manager.public KeyStoreKeyManager(java.lang.String keyStoreFile, char[] keyStorePIN, java.lang.String keyStoreFormat, java.lang.String certificateAlias) throws java.security.KeyStoreException
keyStoreFile
- The path to the key store file to use. It must
not be null
.keyStorePIN
- The PIN to use to access the contents of the key
store. It may be null
if no PIN is
required.keyStoreFormat
- The format to use for the key store. It may be
null
if the default format should be
used.certificateAlias
- The nickname of the certificate that should be
selected. It may be null
if any
acceptable certificate found in the keystore may
be used.
java.security.KeyStoreException
- If a problem occurs while initializing this key
manager.Method Detail |
---|
public java.lang.String getKeyStoreFile()
public java.lang.String getKeyStoreFormat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |