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(Collection<String> cipherSuites,
TrustSource trustSource)
Creates a netty SslContext for use when connecting to upstream servers.
|
public static io.netty.handler.ssl.SslContext getUpstreamServerSslContext(Collection<String> cipherSuites, TrustSource trustSource)
cipherSuites - cipher suites to allow when connecting to the upstream servertrustSource - the trust store that will be used to validate upstream servers' certificates, or null to accept all upstream server certificatespublic 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.