public class KeyManagerFactoryFactoryBean extends Object
KeyManagerFactory.
This object holds the configurable properties of a key manager factory
and uses them to create and load a KeyManagerFactory instance.
| Constructor and Description |
|---|
KeyManagerFactoryFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
KeyManagerFactory |
createKeyManagerFactory()
Creates a
KeyManagerFactory using the receiver's configuration. |
String |
getAlgorithm()
Gets the algorithm name for the key manager factory.
|
String |
getProvider()
Gets the JSSE provider name for the key manager factory.
|
void |
setAlgorithm(String algorithm)
Sets the algorithm name for the key manager factory.
|
void |
setProvider(String provider)
Sets the JSSE provider name for the key manager factory.
|
public KeyManagerFactory createKeyManagerFactory() throws NoSuchProviderException, NoSuchAlgorithmException
KeyManagerFactory using the receiver's configuration.NoSuchProviderException - if the provider specified by
setProvider(String) is not known to the platformNoSuchAlgorithmException - if the algorithm specified by
setAlgorithm(String) is not known to the specified provider
(or to the default platform provider if no provider is specified)public String getAlgorithm()
SunX509); the default algorithm
(obtained from KeyManagerFactory.getDefaultAlgorithm())
is returned if no algorithm has been configuredpublic void setAlgorithm(String algorithm)
algorithm - an algorithm name, which must be recognized by the
provider specified by setProvider(String) or by the
platform's default provider if no provider is specified.public String getProvider()
public void setProvider(String provider)
provider - name of the JSSE provider to utilize in creating the
key manager factoryCopyright © 2005–2021 QOS.ch. All rights reserved.