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

public Class TrustManagerFactoryFactoryBean

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

A factory bean for a JSSE TrustManagerFactory.

This object holds the configurable properties of a trust manager factory and uses them to create and load a TrustManagerFactory 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 TrustManagerFactory

Returns:

factory object
createTrustManagerFactory
()

Creates a TrustManagerFactory using the receiver's configuration.

public String

Returns:

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

Gets the algorithm name for the trust manager factory.

public String

Returns:

provider name
getProvider
()

Gets the JSSE provider name for the trust 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 trust manager factory.

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

Sets the JSSE provider name for the trust manager factory.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

TrustManagerFactoryFactoryBeanback to summary
public TrustManagerFactoryFactoryBean()

Method Detail

createTrustManagerFactoryback to summary
public TrustManagerFactory createTrustManagerFactory() throws NoSuchProviderException, NoSuchAlgorithmException

Creates a TrustManagerFactory using the receiver's configuration.

Returns:TrustManagerFactory

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 trust manager factory.

Returns:String

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

getProviderback to summary
public String getProvider()

Gets the JSSE provider name for the trust manager factory.

Returns:String

provider name

setAlgorithmback to summary
public void setAlgorithm(String algorithm)

Sets the algorithm name for the trust 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 trust manager factory.

Parameters
provider:String

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