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) |
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 SSLContextpublic 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-2019 Apache Software Foundation. All Rights Reserved.