@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class KeyStoreKeyManager extends WrapperKeyManager implements java.io.Serializable
| Constructor and Description |
|---|
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.io.File keyStoreFile,
char[] keyStorePIN,
java.lang.String keyStoreFormat,
java.lang.String certificateAlias,
boolean validateKeyStore)
Creates a new instance of this key store key manager that provides the
ability to retrieve certificates from the specified key store file.
|
KeyStoreKeyManager(KeyStoreKeyManagerProperties properties)
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.
|
KeyStoreKeyManager(java.lang.String keyStoreFile,
char[] keyStorePIN,
java.lang.String keyStoreFormat,
java.lang.String certificateAlias,
boolean validateKeyStore)
Creates a new instance of this key store key manager that provides the
ability to retrieve certificates from the specified key store file.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
chooseClientAlias, chooseEngineClientAlias, chooseEngineServerAlias, chooseServerAlias, getCertificateAlias, getCertificateChain, getClientAliases, getPrivateKey, getServerAliasespublic KeyStoreKeyManager(@NotNull java.io.File keyStoreFile, @Nullable 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(@NotNull java.lang.String keyStoreFile, @Nullable 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(@NotNull java.io.File keyStoreFile, @Nullable char[] keyStorePIN, @Nullable java.lang.String keyStoreFormat, @Nullable 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(@NotNull java.lang.String keyStoreFile, @Nullable char[] keyStorePIN, @Nullable java.lang.String keyStoreFormat, @Nullable 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(@NotNull java.io.File keyStoreFile, @Nullable char[] keyStorePIN, @Nullable java.lang.String keyStoreFormat, @Nullable java.lang.String certificateAlias, boolean validateKeyStore) 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.validateKeyStore - Indicates whether to validate that the provided
key store is acceptable and can actually be used
to obtain a valid certificate. If a certificate
alias was specified, then this will ensure that
the key store contains a valid private key entry
with that alias. If no certificate alias was
specified, then this will ensure that the key
store contains at least one valid private key
entry.java.security.KeyStoreException - If a problem occurs while initializing this key
manager, or if validation fails.public KeyStoreKeyManager(@NotNull java.lang.String keyStoreFile, @Nullable char[] keyStorePIN, @Nullable java.lang.String keyStoreFormat, @Nullable java.lang.String certificateAlias, boolean validateKeyStore) 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.validateKeyStore - Indicates whether to validate that the provided
key store is acceptable and can actually be used
to obtain a valid certificate. If a certificate
alias was specified, then this will ensure that
the key store contains a valid private key entry
with that alias. If no certificate alias was
specified, then this will ensure that the key
store contains at least one valid private key
entry.java.security.KeyStoreException - If a problem occurs while initializing this key
manager, or if validation fails.public KeyStoreKeyManager(@NotNull KeyStoreKeyManagerProperties properties) throws java.security.KeyStoreException
properties - The properties to use to create this key manager. It
must not be null.java.security.KeyStoreException - If a problem occurs while initializing this key
manager, or if validation fails.@NotNull public java.lang.String getKeyStoreFile()
@NotNull public java.lang.String getKeyStoreFormat()