public class OpenSSLContext extends java.lang.Object implements SSLContext
| Constructor and Description |
|---|
OpenSSLContext(SSLHostConfigCertificate certificate,
java.util.List<java.lang.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) |
javax.net.ssl.SSLEngine |
createSSLEngine() |
void |
destroy() |
protected void |
finalize() |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String alias) |
java.lang.String |
getEnabledProtocol() |
javax.net.ssl.SSLSessionContext |
getServerSessionContext() |
javax.net.ssl.SSLServerSocketFactory |
getServerSocketFactory() |
javax.net.ssl.SSLParameters |
getSupportedSSLParameters() |
void |
init(javax.net.ssl.KeyManager[] kms,
javax.net.ssl.TrustManager[] tms,
java.security.SecureRandom sr)
Setup the SSL_CTX.
|
void |
setEnabledProtocol(java.lang.String protocol) |
public OpenSSLContext(SSLHostConfigCertificate certificate, java.util.List<java.lang.String> negotiableProtocols) throws javax.net.ssl.SSLException
javax.net.ssl.SSLExceptionpublic java.lang.String getEnabledProtocol()
public void setEnabledProtocol(java.lang.String protocol)
public void destroy()
destroy in interface SSLContextprotected static boolean checkConf(OpenSSLConf conf, long cctx) throws java.lang.Exception
java.lang.Exceptionprotected static boolean applyConf(OpenSSLConf conf, long cctx, long ctx) throws java.lang.Exception
java.lang.Exceptionpublic void init(javax.net.ssl.KeyManager[] kms,
javax.net.ssl.TrustManager[] tms,
java.security.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 java.lang.Exception
java.lang.Exceptionpublic javax.net.ssl.SSLSessionContext getServerSessionContext()
getServerSessionContext in interface SSLContextpublic javax.net.ssl.SSLEngine createSSLEngine()
createSSLEngine in interface SSLContextpublic javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()
getServerSocketFactory in interface SSLContextpublic javax.net.ssl.SSLParameters getSupportedSSLParameters()
getSupportedSSLParameters in interface SSLContextpublic java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias)
getCertificateChain in interface SSLContextpublic java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface SSLContextprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.