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
SSLException
public String getEnabledProtocol()
public void setEnabledProtocol(String protocol)
public void destroy()
destroy
in interface SSLContext
public void init(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)
init
in interface SSLContext
kms
- Must contain a KeyManager of the type
OpenSSLKeyManager
tms
- Must contain a TrustManager of the type
X509TrustManager
sr
- Is not used for this implementation.public SSLSessionContext getServerSessionContext()
getServerSessionContext
in interface SSLContext
public SSLEngine createSSLEngine()
createSSLEngine
in interface SSLContext
public SSLServerSocketFactory getServerSocketFactory()
getServerSocketFactory
in interface SSLContext
public SSLParameters getSupportedSSLParameters()
getSupportedSSLParameters
in interface SSLContext
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.