Package org.conscrypt
Class DefaultSSLContextImpl
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- org.conscrypt.OpenSSLContextImpl
-
- org.conscrypt.DefaultSSLContextImpl
-
public final class DefaultSSLContextImpl extends OpenSSLContextImpl
Support class for this package.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLContextImpl
OpenSSLContextImpl.SSLv3, OpenSSLContextImpl.TLSv1, OpenSSLContextImpl.TLSv11, OpenSSLContextImpl.TLSv12
-
-
Field Summary
-
Fields inherited from class org.conscrypt.OpenSSLContextImpl
sslParameters
-
-
Constructor Summary
Constructors Constructor Description DefaultSSLContextImpl()DefaultSSLContextImpl delegates the work to the super class since there is no way to put a synchronized around both the call to super and the rest of this constructor to guarantee that we don't have races in creating the state shared between all default SSLContexts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)Initializes thisSSLContextinstance.-
Methods inherited from class org.conscrypt.OpenSSLContextImpl
engineCreateSSLEngine, engineCreateSSLEngine, engineGetClientSessionContext, engineGetServerSessionContext, engineGetServerSocketFactory, engineGetSocketFactory, getPreferred
-
Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
-
-
-
Constructor Detail
-
DefaultSSLContextImpl
public DefaultSSLContextImpl() throws GeneralSecurityException, IOExceptionDefaultSSLContextImpl delegates the work to the super class since there is no way to put a synchronized around both the call to super and the rest of this constructor to guarantee that we don't have races in creating the state shared between all default SSLContexts.- Throws:
GeneralSecurityExceptionIOException
-
-
Method Detail
-
engineInit
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException
Description copied from class:OpenSSLContextImplInitializes thisSSLContextinstance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.- Overrides:
engineInitin classOpenSSLContextImpl- Parameters:
kms- the key sources ornulltms- the trust decision sources ornullsr- the randomness source ornull- Throws:
KeyManagementException- if initializing this instance fails
-
-