Package ch.qos.logback.core.net.ssl
Class TrustManagerFactoryFactoryBean
- java.lang.Object
-
- ch.qos.logback.core.net.ssl.TrustManagerFactoryFactoryBean
-
public class TrustManagerFactoryFactoryBean extends java.lang.ObjectA factory bean for a JSSETrustManagerFactory.This object holds the configurable properties of a trust manager factory and uses them to create and load a
TrustManagerFactoryinstance.
-
-
Constructor Summary
Constructors Constructor Description TrustManagerFactoryFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.TrustManagerFactorycreateTrustManagerFactory()Creates aTrustManagerFactoryusing the receiver's configuration.java.lang.StringgetAlgorithm()Gets the algorithm name for the trust manager factory.java.lang.StringgetProvider()Gets the JSSE provider name for the trust manager factory.voidsetAlgorithm(java.lang.String algorithm)Sets the algorithm name for the trust manager factory.voidsetProvider(java.lang.String provider)Sets the JSSE provider name for the trust manager factory.
-
-
-
Method Detail
-
createTrustManagerFactory
public javax.net.ssl.TrustManagerFactory createTrustManagerFactory() throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmExceptionCreates aTrustManagerFactoryusing the receiver's configuration.- Returns:
- factory object
- Throws:
java.security.NoSuchProviderException- if the provider specified bysetProvider(String)is not known to the platformjava.security.NoSuchAlgorithmException- if the algorithm specified bysetAlgorithm(String)is not known to the specified provider (or to the default platform provider if no provider is specified)
-
getAlgorithm
public java.lang.String getAlgorithm()
Gets the algorithm name for the trust manager factory.- Returns:
- algorithm name (e.g.
PKIX); the default algorithm (obtained fromTrustManagerFactory.getDefaultAlgorithm()) is returned if no algorithm has been configured
-
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
Sets the algorithm name for the trust manager factory.- Parameters:
algorithm- an algorithm name, which must be recognized by the provider specified bysetProvider(String)or by the platform's default provider if no provider is specified.
-
getProvider
public java.lang.String getProvider()
Gets the JSSE provider name for the trust manager factory.- Returns:
- provider name
-
setProvider
public void setProvider(java.lang.String provider)
Sets the JSSE provider name for the trust manager factory.- Parameters:
provider- name of the JSSE provider to utilize in creating the trust manager factory
-
-