Package org.conscrypt
Class OpenSSLContextImpl
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- org.conscrypt.OpenSSLContextImpl
-
- Direct Known Subclasses:
DefaultSSLContextImpl,OpenSSLContextImpl.TLSv1,OpenSSLContextImpl.TLSv11,OpenSSLContextImpl.TLSv12,OpenSSLContextImpl.TLSv13
@Internal public abstract class OpenSSLContextImpl extends SSLContextSpi
OpenSSL-backed SSLContext service provider interface.Public to allow contruction via the provider framework.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLContextImpl.TLSv1Public to allow construction via the provider framework.static classOpenSSLContextImpl.TLSv11Public to allow construction via the provider framework.static classOpenSSLContextImpl.TLSv12Public to allow construction via the provider framework.static classOpenSSLContextImpl.TLSv13Public to allow construction via the provider framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLEngineengineCreateSSLEngine()SSLEngineengineCreateSSLEngine(String host, int port)SSLSessionContextengineGetClientSessionContext()SSLSessionContextengineGetServerSessionContext()SSLServerSocketFactoryengineGetServerSocketFactory()SSLSocketFactoryengineGetSocketFactory()voidengineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)Initializes thisSSLContextinstance.-
Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
-
-
-
Method Detail
-
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
public SSLSocketFactory engineGetSocketFactory()
- Specified by:
engineGetSocketFactoryin classSSLContextSpi
-
engineGetServerSocketFactory
public SSLServerSocketFactory engineGetServerSocketFactory()
- Specified by:
engineGetServerSocketFactoryin classSSLContextSpi
-
engineCreateSSLEngine
public SSLEngine engineCreateSSLEngine(String host, int port)
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineCreateSSLEngine
public SSLEngine engineCreateSSLEngine()
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineGetServerSessionContext
public SSLSessionContext engineGetServerSessionContext()
- Specified by:
engineGetServerSessionContextin classSSLContextSpi
-
engineGetClientSessionContext
public SSLSessionContext engineGetClientSessionContext()
- Specified by:
engineGetClientSessionContextin classSSLContextSpi
-
-