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) |
protected static boolean |
applyConf(OpenSSLConf conf,
long cctx,
long ctx) |
protected static boolean |
checkConf(OpenSSLConf conf,
long cctx) |
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
SSLExceptionpublic String getEnabledProtocol()
public void setEnabledProtocol(String protocol)
public void destroy()
destroy in interface SSLContextprotected static boolean checkConf(OpenSSLConf conf, long cctx) throws Exception
Exceptionprotected static boolean applyConf(OpenSSLConf conf, long cctx, long ctx) throws Exception
Exceptionpublic 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 void addCertificate(SSLHostConfigCertificate certificate) throws Exception
Exceptionpublic SSLSessionContext getServerSessionContext()
getServerSessionContext in interface SSLContextpublic SSLEngine createSSLEngine()
createSSLEngine in interface SSLContextpublic SSLServerSocketFactory getServerSocketFactory()
getServerSocketFactory in interface SSLContextpublic SSLParameters getSupportedSSLParameters()
getSupportedSSLParameters in interface SSLContextpublic X509Certificate[] getCertificateChain(String alias)
getCertificateChain in interface SSLContextpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface SSLContextCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.