public class SslUtil extends Object
| Constructor and Description |
|---|
SslUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getBuiltInCipherList()
Returns ciphers from the hard-coded list of "reasonable" default ciphers in
DEFAULT_CIPHERS_LIST_RESOURCE. |
static List<String> |
getDefaultCipherList()
Returns a reasonable default cipher list for new client and server SSL connections.
|
static List<String> |
getEnabledJdkCipherSuites()
Returns the list of default "enabled" ciphers for server TLS connections, as reported by the default Java security provider.
|
static X509Certificate |
getServerCertificate(SSLSession sslSession)
Returns the X509Certificate for the server this session is connected to.
|
static io.netty.handler.ssl.SslContext |
getUpstreamServerSslContext(boolean trustAllServers,
Collection<String> cipherSuites)
Creates a netty SslContext for use when connecting to upstream servers.
|
public static io.netty.handler.ssl.SslContext getUpstreamServerSslContext(boolean trustAllServers,
Collection<String> cipherSuites)
trustAllServers - when true, no upstream server certificate validation will be performedcipherSuites - cipher suites to allow when connecting to the upstream serverpublic static X509Certificate getServerCertificate(SSLSession sslSession)
sslSession - SSL session connected to upstream serverpublic static List<String> getEnabledJdkCipherSuites()
public static List<String> getDefaultCipherList()
defaultCipherList for implementation details.public static List<String> getBuiltInCipherList()
DEFAULT_CIPHERS_LIST_RESOURCE.DEFAULT_CIPHERS_LIST_RESOURCECopyright © 2016. All Rights Reserved.