Class OpenSSLContext
java.lang.Object
org.apache.tomcat.util.net.openssl.OpenSSLContext
- All Implemented Interfaces:
SSLContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLContext(SSLHostConfigCertificate certificate, List<String> negotiableProtocols) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertificate(SSLHostConfigCertificate certificate) protected static booleanapplyConf(OpenSSLConf conf, long cctx, long ctx) protected static booleancheckConf(OpenSSLConf conf, long cctx) voiddestroy()protected voidfinalize()getCertificateChain(String alias) voidinit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) Setup the SSL_CTX.voidsetEnabledProtocol(String protocol)
-
Field Details
-
cctx
protected final long cctx -
ctx
protected final long ctx
-
-
Constructor Details
-
OpenSSLContext
public OpenSSLContext(SSLHostConfigCertificate certificate, List<String> negotiableProtocols) throws SSLException - Throws:
SSLException
-
-
Method Details
-
getEnabledProtocol
-
setEnabledProtocol
-
destroy
public void destroy()- Specified by:
destroyin interfaceSSLContext
-
checkConf
- Throws:
Exception
-
applyConf
- Throws:
Exception
-
init
Setup the SSL_CTX.- Specified by:
initin interfaceSSLContext- Parameters:
kms- Must contain a KeyManager of the typeOpenSSLKeyManagertms- Must contain a TrustManager of the typeX509TrustManagersr- Is not used for this implementation.
-
addCertificate
- Throws:
Exception
-
getServerSessionContext
- Specified by:
getServerSessionContextin interfaceSSLContext
-
createSSLEngine
- Specified by:
createSSLEnginein interfaceSSLContext
-
getServerSocketFactory
- Specified by:
getServerSocketFactoryin interfaceSSLContext
-
getSupportedSSLParameters
- Specified by:
getSupportedSSLParametersin interfaceSSLContext
-
getCertificateChain
- Specified by:
getCertificateChainin interfaceSSLContext
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceSSLContext
-
finalize
-