Class OpenSSLContextImpl
java.lang.Object
javax.net.ssl.SSLContextSpi
org.conscrypt.OpenSSLContextImpl
- Direct Known Subclasses:
DefaultSSLContextImpl, OpenSSLContextImpl.TLSv1, OpenSSLContextImpl.TLSv11, OpenSSLContextImpl.TLSv12, OpenSSLContextImpl.TLSv13
OpenSSL-backed SSLContext service provider interface.
Public to allow contruction via the provider framework.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPublic to allow construction via the provider framework.static final classPublic to allow construction via the provider framework.static final classPublic to allow construction via the provider framework.static final classPublic to allow construction via the provider framework. -
Method Summary
Modifier and TypeMethodDescriptionengineCreateSSLEngine(String host, int port) voidengineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) Initializes thisSSLContextinstance.Methods inherited from class SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
Method Details
-
engineInit
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException Initializes thisSSLContextinstance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.- Specified by:
engineInitin classSSLContextSpi- Parameters:
kms- the key sources ornulltms- the trust decision sources ornullsr- the randomness source ornull- Throws:
KeyManagementException- if initializing this instance fails
-
engineGetSocketFactory
- Specified by:
engineGetSocketFactoryin classSSLContextSpi
-
engineGetServerSocketFactory
- Specified by:
engineGetServerSocketFactoryin classSSLContextSpi
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineGetServerSessionContext
- Specified by:
engineGetServerSessionContextin classSSLContextSpi
-
engineGetClientSessionContext
- Specified by:
engineGetClientSessionContextin classSSLContextSpi
-