Class OpenSSLContext
java.lang.Object
org.apache.tomcat.util.net.openssl.OpenSSLContext
- All Implemented Interfaces:
- SSLContext
- 
Constructor SummaryConstructorsConstructorDescriptionOpenSSLContext(SSLHostConfigCertificate certificate, List<String> negotiableProtocols) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCertificate(SSLHostConfigCertificate certificate) protected static booleanapplyConf(OpenSSLConf conf, long cctx, long ctx) protected static booleancheckConf(OpenSSLConf conf, long cctx) voiddestroy()getCertificateChain(String alias) voidinit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) Setup the SSL_CTX.voidsetEnabledProtocol(String protocol) 
- 
Constructor Details- 
OpenSSLContextpublic OpenSSLContext(SSLHostConfigCertificate certificate, List<String> negotiableProtocols) throws SSLException - Throws:
- SSLException
 
 
- 
- 
Method Details- 
getEnabledProtocol
- 
setEnabledProtocol
- 
destroypublic void destroy()- Specified by:
- destroyin interface- SSLContext
 
- 
checkConf- Throws:
- Exception
 
- 
applyConf- Throws:
- Exception
 
- 
initSetup 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.
 
- 
addCertificate- Throws:
- Exception
 
- 
getServerSessionContext- Specified by:
- getServerSessionContextin interface- SSLContext
 
- 
createSSLEngine- Specified by:
- createSSLEnginein interface- SSLContext
 
- 
getServerSocketFactory- Specified by:
- getServerSocketFactoryin interface- SSLContext
 
- 
getSupportedSSLParameters- Specified by:
- getSupportedSSLParametersin interface- SSLContext
 
- 
getCertificateChain- Specified by:
- getCertificateChainin interface- SSLContext
 
- 
getAcceptedIssuers- Specified by:
- getAcceptedIssuersin interface- SSLContext
 
 
-