public class OpenSSLContext extends Object implements SSLContext
| Modifier and Type | Field and Description |
|---|---|
protected long |
ctx |
| Constructor and Description |
|---|
OpenSSLContext(SSLHostConfigCertificate certificate,
List<String> negotiableProtocols) |
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
createSSLEngine() |
void |
destroy() |
String |
getEnabledProtocol() |
List<String> |
getJsseCipherNames() |
SSLSessionContext |
getServerSessionContext() |
SSLServerSocketFactory |
getServerSocketFactory() |
SSLParameters |
getSupportedSSLParameters() |
void |
init(KeyManager[] kms,
TrustManager[] tms,
SecureRandom sr)
Setup the SSL_CTX.
|
void |
setEnabledProtocol(String protocol) |
public OpenSSLContext(SSLHostConfigCertificate certificate, List<String> negotiableProtocols) throws SSLException
SSLExceptionpublic String getEnabledProtocol()
public void setEnabledProtocol(String protocol)
public void destroy()
destroy in interface SSLContextpublic void init(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)
init in interface SSLContextkms - Must contain a KeyManager of the type
OpenSSLKeyManagertms - Must contain a TrustManager of the type
X509TrustManagersr - Is not used for this implementation.public SSLSessionContext getServerSessionContext()
getServerSessionContext in interface SSLContextpublic SSLEngine createSSLEngine()
createSSLEngine in interface SSLContextpublic SSLServerSocketFactory getServerSocketFactory()
getServerSocketFactory in interface SSLContextpublic SSLParameters getSupportedSSLParameters()
getSupportedSSLParameters in interface SSLContextCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.