public class DefaultSslConfiguration extends Object implements SslConfiguration
| Constructor and Description |
|---|
DefaultSslConfiguration(KeyManagerFactory keyManagerFactory,
TrustManagerFactory trustManagerFactory,
ClientAuth clientAuthReqd,
String sslProtocol,
String[] enabledCipherSuites,
String keyAlias)
Internal constructor, do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
ClientAuth |
getClientAuth()
Return the required client authentication setting
|
String[] |
getEnabledCipherSuites()
Returns the cipher suites that should be enabled for this connection.
|
String |
getEnabledProtocol()
Returns the default ssl protocol
|
SSLSocketFactory |
getSocketFactory()
Returns the socket factory that can be used to create sockets using this
SslConfiguration. |
SSLContext |
getSSLContext()
Return the SSL context for this configuration
|
SSLContext |
getSSLContext(String enabledProtocol)
Return the SSL context for this configuration given the specified protocol
|
public DefaultSslConfiguration(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, ClientAuth clientAuthReqd, String sslProtocol, String[] enabledCipherSuites, String keyAlias) throws GeneralSecurityException
SslConfigurationFactoryGeneralSecurityExceptionpublic SSLSocketFactory getSocketFactory() throws GeneralSecurityException
SslConfigurationSslConfiguration.getSocketFactory in interface SslConfigurationSslConfiguration.GeneralSecurityException - if any error occurs while creating the socket factory.public SSLContext getSSLContext(String enabledProtocol) throws GeneralSecurityException
SslConfigurationgetSSLContext in interface SslConfigurationenabledProtocol - The protocol, SSL or TLS must be supportedSSLContextGeneralSecurityExceptionSslConfiguration.getSSLContext(String)public String getEnabledProtocol()
SslConfigurationgetEnabledProtocol in interface SslConfigurationSslConfiguration.getEnabledProtocol()public ClientAuth getClientAuth()
SslConfigurationgetClientAuth in interface SslConfigurationClientAuth.NEED if client authentication is required, ClientAuth.WANT is client
authentication is wanted or ClientAuth.NONE if no client authentication is the be performedSslConfiguration.getClientAuth()public SSLContext getSSLContext() throws GeneralSecurityException
SslConfigurationgetSSLContext in interface SslConfigurationSSLContextGeneralSecurityExceptionSslConfiguration.getSSLContext()public String[] getEnabledCipherSuites()
SslConfigurationgetEnabledCipherSuites in interface SslConfigurationSslConfiguration.getEnabledCipherSuites()Copyright © 2003–2025 The Apache Software Foundation. All rights reserved.