public interface SslConfiguration
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 protocol)
Return the SSL context for this configuration given the specified protocol
|
SSLSocketFactory getSocketFactory() throws GeneralSecurityException
SslConfiguration
.SslConfiguration
.GeneralSecurityException
- if any error occurs while creating the socket factory.SSLContext getSSLContext() throws GeneralSecurityException
SSLContext
GeneralSecurityException
SSLContext getSSLContext(String protocol) throws GeneralSecurityException
protocol
- The protocol, SSL or TLS must be supportedSSLContext
GeneralSecurityException
String[] getEnabledCipherSuites()
String getEnabledProtocol()
ClientAuth getClientAuth()
ClientAuth.NEED
if client authentication is required, ClientAuth.WANT
is client
authentication is wanted or ClientAuth.NONE
if no client authentication is the be performedCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.