Class OpenSSLContext
- java.lang.Object
- 
- org.apache.tomcat.util.net.openssl.OpenSSLContext
 
- 
- All Implemented Interfaces:
- SSLContext
 
 public class OpenSSLContext extends java.lang.Object implements SSLContext 
- 
- 
Constructor SummaryConstructors Constructor Description OpenSSLContext(SSLHostConfigCertificate certificate, java.util.List<java.lang.String> negotiableProtocols)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCertificate(SSLHostConfigCertificate certificate)protected static booleanapplyConf(OpenSSLConf conf, long cctx, long ctx)protected static booleancheckConf(OpenSSLConf conf, long cctx)javax.net.ssl.SSLEnginecreateSSLEngine()voiddestroy()protected voidfinalize()java.security.cert.X509Certificate[]getAcceptedIssuers()java.security.cert.X509Certificate[]getCertificateChain(java.lang.String alias)java.lang.StringgetEnabledProtocol()javax.net.ssl.SSLSessionContextgetServerSessionContext()javax.net.ssl.SSLServerSocketFactorygetServerSocketFactory()javax.net.ssl.SSLParametersgetSupportedSSLParameters()voidinit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr)Setup the SSL_CTX.voidsetEnabledProtocol(java.lang.String protocol)
 
- 
- 
- 
Constructor Detail- 
OpenSSLContextpublic OpenSSLContext(SSLHostConfigCertificate certificate, java.util.List<java.lang.String> negotiableProtocols) throws javax.net.ssl.SSLException - Throws:
- javax.net.ssl.SSLException
 
 
- 
 - 
Method Detail- 
getEnabledProtocolpublic java.lang.String getEnabledProtocol() 
 - 
setEnabledProtocolpublic void setEnabledProtocol(java.lang.String protocol) 
 - 
destroypublic void destroy() - Specified by:
- destroyin interface- SSLContext
 
 - 
checkConfprotected static boolean checkConf(OpenSSLConf conf, long cctx) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
applyConfprotected static boolean applyConf(OpenSSLConf conf, long cctx, long ctx) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
initpublic void init(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr)Setup the SSL_CTX.- Specified by:
- initin interface- SSLContext
- Parameters:
- 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.
 
 - 
addCertificatepublic void addCertificate(SSLHostConfigCertificate certificate) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
getServerSessionContextpublic javax.net.ssl.SSLSessionContext getServerSessionContext() - Specified by:
- getServerSessionContextin interface- SSLContext
 
 - 
createSSLEnginepublic javax.net.ssl.SSLEngine createSSLEngine() - Specified by:
- createSSLEnginein interface- SSLContext
 
 - 
getServerSocketFactorypublic javax.net.ssl.SSLServerSocketFactory getServerSocketFactory() - Specified by:
- getServerSocketFactoryin interface- SSLContext
 
 - 
getSupportedSSLParameterspublic javax.net.ssl.SSLParameters getSupportedSSLParameters() - Specified by:
- getSupportedSSLParametersin interface- SSLContext
 
 - 
getCertificateChainpublic java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias) - Specified by:
- getCertificateChainin interface- SSLContext
 
 - 
getAcceptedIssuerspublic java.security.cert.X509Certificate[] getAcceptedIssuers() - Specified by:
- getAcceptedIssuersin interface- SSLContext
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- java.lang.Object
- Throws:
- java.lang.Throwable
 
 
- 
 
-