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.
|
SSLContext |
getSSLContext()
Return the SSL context for this configuration
|
SSLContext |
getSSLContext(String protocol)
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)
SslConfigurationFactory
public SSLContext getSSLContext(String protocol) throws GeneralSecurityException
SslConfiguration
getSSLContext
in interface SslConfiguration
protocol
- The protocol, SSL or TLS must be supportedSSLContext
GeneralSecurityException
SslConfiguration.getSSLContext(String)
public ClientAuth getClientAuth()
SslConfiguration
getClientAuth
in interface SslConfiguration
ClientAuth.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
SslConfiguration
getSSLContext
in interface SslConfiguration
SSLContext
GeneralSecurityException
SslConfiguration.getSSLContext()
public String[] getEnabledCipherSuites()
SslConfiguration
getEnabledCipherSuites
in interface SslConfiguration
SslConfiguration.getEnabledCipherSuites()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.