Top Description Fields Constructors Methods
ch.qos.logback.core.net.ssl

public Class KeyManagerFactoryFactoryBean

extends Object
Class Inheritance
Imports
java.security.NoSuchAlgorithmException, .NoSuchProviderException, javax.net.ssl.KeyManagerFactory

A factory bean for a JSSE KeyManagerFactory.

This object holds the configurable properties of a key manager factory and uses them to create and load a KeyManagerFactory instance.

Author
Carl Harris

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public KeyManagerFactory

Returns:

factory object
createKeyManagerFactory
()

Creates a KeyManagerFactory using the receiver's configuration.

public String

Returns:

algorithm name (e.g. SunX509); the default algorithm (obtained from KeyManagerFactory#getDefaultAlgorithm()) is returned if no algorithm has been configured
getAlgorithm
()

Gets the algorithm name for the key manager factory.

public String

Returns:

provider name
getProvider
()

Gets the JSSE provider name for the key manager factory.

public void
setAlgorithm(String
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.
algorithm
)

Sets the algorithm name for the key manager factory.

public void
setProvider(String
name of the JSSE provider to utilize in creating the key manager factory
provider
)

Sets the JSSE provider name for the key manager factory.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private String algorithm
providerback to summary
private String provider

Constructor Detail

KeyManagerFactoryFactoryBeanback to summary
public KeyManagerFactoryFactoryBean()

Method Detail

createKeyManagerFactoryback to summary
public KeyManagerFactory createKeyManagerFactory() throws NoSuchProviderException, NoSuchAlgorithmException

Creates a KeyManagerFactory using the receiver's configuration.

Returns:KeyManagerFactory

factory object

Exceptions
NoSuchProviderException:
if the provider specified by setProvider(String) is not known to the platform
NoSuchAlgorithmException:
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)
getAlgorithmback to summary
public String getAlgorithm()

Gets the algorithm name for the key manager factory.

Returns:String

algorithm name (e.g. SunX509); the default algorithm (obtained from KeyManagerFactory#getDefaultAlgorithm()) is returned if no algorithm has been configured

getProviderback to summary
public String getProvider()

Gets the JSSE provider name for the key manager factory.

Returns:String

provider name

setAlgorithmback to summary
public void setAlgorithm(String algorithm)

Sets the algorithm name for the key manager factory.

Parameters
algorithm:String

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.

setProviderback to summary
public void setProvider(String provider)

Sets the JSSE provider name for the key manager factory.

Parameters
provider:String

name of the JSSE provider to utilize in creating the key manager factory