java.lang.Object | |
↳ | javax.net.ssl.KeyManagerFactory |
The public API for KeyManagerFactory
implementations.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
KeyManagerFactory . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the name of the key management algorithm.
| |||||||||||
Returns the default key manager factory algorithm name.
| |||||||||||
Creates a new
KeyManagerFactory instance for the specified key
management algorithm from the specified provider. | |||||||||||
Creates a new
KeyManagerFactory instance for the specified key
management algorithm from the specified provider. | |||||||||||
Creates a new
KeyManagerFactory instance for the specified key
management algorithm. | |||||||||||
Returns a list of key managers, one instance for each type of key in the
key store.
| |||||||||||
Returns the provider for this
KeyManagerFactory instance. | |||||||||||
Initializes this instance with the specified factory parameters.
| |||||||||||
Initializes this instance with the specified key store and password.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a new KeyManagerFactory
.
factorySpi | the implementation delegate. |
---|---|
provider | the provider. |
algorithm | the key management algorithm name. |
Returns the name of the key management algorithm.
Returns the default key manager factory algorithm name.
The default algorithm name is specified by the security property:
'ssl.KeyManagerFactory.algorithm'
.
Creates a new KeyManagerFactory
instance for the specified key
management algorithm from the specified provider.
algorithm | the name of the requested key management algorithm name. |
---|---|
provider | the name of the provider that provides the requested algorithm. |
NoSuchAlgorithmException | if the specified provider cannot provide the requested algorithm. |
---|---|
NoSuchProviderException | if the specified provider does not exist. |
NullPointerException | if algorithm is null (instead of
NoSuchAlgorithmException as in 1.4 release)
|
Creates a new KeyManagerFactory
instance for the specified key
management algorithm from the specified provider.
algorithm | the name of the requested key management algorithm name. |
---|---|
provider | the provider that provides the requested algorithm. |
NoSuchAlgorithmException | if the specified provider cannot provide the requested algorithm. |
---|---|
NullPointerException | if algorithm is null (instead of
NoSuchAlgorithmException as in 1.4 release)
|
Creates a new KeyManagerFactory
instance for the specified key
management algorithm.
algorithm | the name of the requested key management algorithm. |
---|
NoSuchAlgorithmException | if no installed provider can provide the requested algorithm. |
---|---|
NullPointerException | if algorithm is null (instead of
NoSuchAlgorithmException as in 1.4 release)
|
Returns a list of key managers, one instance for each type of key in the key store.
Returns the provider for this KeyManagerFactory
instance.
KeyManagerFactory
instance.
Initializes this instance with the specified factory parameters.
spec | the factory parameters. |
---|
InvalidAlgorithmParameterException | if an error occurs. |
---|
Initializes this instance with the specified key store and password.
ks | the key store or null to use the default key store. |
---|---|
password | the password for the specified key store or null if no
key store is provided. |
KeyStoreException | if initializing this key manager factory fails. |
---|---|
NoSuchAlgorithmException | if a required algorithm is not available. |
UnrecoverableKeyException | if a key cannot be recovered. |