Package ch.qos.logback.core.net.ssl
Class SSLContextFactoryBean
- java.lang.Object
-
- ch.qos.logback.core.net.ssl.SSLContextFactoryBean
-
- Direct Known Subclasses:
SSLConfiguration
@Deprecated(since="2022-01-27") public class SSLContextFactoryBean extends java.lang.ObjectDeprecated.This internal logback API is not supported by AEM as a Cloud Service.A factory bean for a JSSESSLContext.This object holds the configurable properties for an SSL context and uses them to create an
SSLContextinstance.
-
-
Constructor Summary
Constructors Constructor Description SSLContextFactoryBean()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.net.ssl.SSLContextcreateContext(ContextAware context)Deprecated.Creates a newSSLContextusing the receiver's configuration.KeyManagerFactoryFactoryBeangetKeyManagerFactory()Deprecated.Gets the key manager factory configuration.KeyStoreFactoryBeangetKeyStore()Deprecated.Gets the key store configuration.java.lang.StringgetProtocol()Deprecated.Gets the secure transport protocol name.java.lang.StringgetProvider()Deprecated.Gets the JSSE provider name for the SSL context.SecureRandomFactoryBeangetSecureRandom()Deprecated.Gets the secure random generator configuration.TrustManagerFactoryFactoryBeangetTrustManagerFactory()Deprecated.Gets the trust manager factory configuration.KeyStoreFactoryBeangetTrustStore()Deprecated.Gets the trust store configuration.voidsetKeyManagerFactory(KeyManagerFactoryFactoryBean keyManagerFactory)Deprecated.Sets the key manager factory configuration.voidsetKeyStore(KeyStoreFactoryBean keyStore)Deprecated.Sets the key store configuration.voidsetProtocol(java.lang.String protocol)Deprecated.Sets the secure transport protocol name.voidsetProvider(java.lang.String provider)Deprecated.Sets the JSSE provider name for the SSL context.voidsetSecureRandom(SecureRandomFactoryBean secureRandom)Deprecated.Sets the secure random generator configuration.voidsetTrustManagerFactory(TrustManagerFactoryFactoryBean trustManagerFactory)Deprecated.Sets the trust manager factory configuration.voidsetTrustStore(KeyStoreFactoryBean trustStore)Deprecated.Sets the trust store configuration.
-
-
-
Method Detail
-
createContext
public javax.net.ssl.SSLContext createContext(ContextAware context) throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.UnrecoverableKeyException, java.security.KeyStoreException, java.security.cert.CertificateException
Deprecated.Creates a newSSLContextusing the receiver's configuration.- Parameters:
context- context for status messages- Returns:
SSLContextobject- Throws:
java.security.NoSuchProviderException- if a provider specified for one of the JCA or JSSE components utilized in creating the context is not known to the platformjava.security.NoSuchAlgorithmException- if a JCA or JSSE algorithm, protocol, or type name specified for one of the context's components is not known to a given provider (or platform default provider for the component)java.security.KeyManagementException- if an error occurs in creating aKeyManagerfor the contextjava.security.UnrecoverableKeyException- if a private key needed by aKeyManagercannot be obtained from a key storejava.security.KeyStoreException- if an error occurs in reading the contents of a key storejava.security.cert.CertificateException- if an error occurs in reading the contents of a certificate
-
getKeyStore
public KeyStoreFactoryBean getKeyStore()
Deprecated.Gets the key store configuration.- Returns:
- key store factory bean or
nullif no key store configuration was provided
-
setKeyStore
public void setKeyStore(KeyStoreFactoryBean keyStore)
Deprecated.Sets the key store configuration.- Parameters:
keyStore- the key store factory bean to set
-
getTrustStore
public KeyStoreFactoryBean getTrustStore()
Deprecated.Gets the trust store configuration.- Returns:
- trust store factory bean or
nullif no trust store configuration was provided
-
setTrustStore
public void setTrustStore(KeyStoreFactoryBean trustStore)
Deprecated.Sets the trust store configuration.- Parameters:
trustStore- the trust store factory bean to set
-
getSecureRandom
public SecureRandomFactoryBean getSecureRandom()
Deprecated.Gets the secure random generator configuration.- Returns:
- secure random factory bean; if no secure random generator configuration has been set, a default factory bean is returned
-
setSecureRandom
public void setSecureRandom(SecureRandomFactoryBean secureRandom)
Deprecated.Sets the secure random generator configuration.- Parameters:
secureRandom- the secure random factory bean to set
-
getKeyManagerFactory
public KeyManagerFactoryFactoryBean getKeyManagerFactory()
Deprecated.Gets the key manager factory configuration.- Returns:
- factory bean; if no key manager factory configuration has been set, a default factory bean is returned
-
setKeyManagerFactory
public void setKeyManagerFactory(KeyManagerFactoryFactoryBean keyManagerFactory)
Deprecated.Sets the key manager factory configuration.- Parameters:
keyManagerFactory- the key manager factory factory bean to set
-
getTrustManagerFactory
public TrustManagerFactoryFactoryBean getTrustManagerFactory()
Deprecated.Gets the trust manager factory configuration.- Returns:
- factory bean; if no trust manager factory configuration has been set, a default factory bean is returned
-
setTrustManagerFactory
public void setTrustManagerFactory(TrustManagerFactoryFactoryBean trustManagerFactory)
Deprecated.Sets the trust manager factory configuration.- Parameters:
trustManagerFactory- the factory bean to set
-
getProtocol
public java.lang.String getProtocol()
Deprecated.Gets the secure transport protocol name.- Returns:
- protocol name (e.g.
SSL,TLS); theSSL.DEFAULT_PROTOCOLis returned if no protocol has been configured
-
setProtocol
public void setProtocol(java.lang.String protocol)
Deprecated.Sets the secure transport protocol name.- Parameters:
protocol- a protocol name, which must be recognized by the provider specified bysetProvider(String)or by the platform's default provider if no platform was specified.
-
getProvider
public java.lang.String getProvider()
Deprecated.Gets the JSSE provider name for the SSL context.- Returns:
- JSSE provider name
-
setProvider
public void setProvider(java.lang.String provider)
Deprecated.Sets the JSSE provider name for the SSL context.- Parameters:
provider- name of the JSSE provider to use in creating the SSL context
-
-