public class OpenSSLContext extends Object implements SSLContext
Constructor and Description |
---|
OpenSSLContext(SSLHostConfigCertificate certificate,
List<String> negotiableProtocols) |
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(SSLHostConfigCertificate certificate) |
SSLEngine |
createSSLEngine() |
void |
destroy() |
protected void |
finalize() |
X509Certificate[] |
getAcceptedIssuers() |
X509Certificate[] |
getCertificateChain(String alias) |
String |
getEnabledProtocol() |
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 void addCertificate(SSLHostConfigCertificate certificate) throws Exception
Exception
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
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface SSLContext
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface SSLContext
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.