Package org.conscrypt
Class DefaultSSLContextImpl
java.lang.Object
javax.net.ssl.SSLContextSpi
org.conscrypt.SSLContextImpl
org.conscrypt.OpenSSLContextImpl
org.conscrypt.DefaultSSLContextImpl
public final class DefaultSSLContextImpl extends OpenSSLContextImpl
Support class for this package.
-
Field Summary
Fields inherited from class org.conscrypt.SSLContextImpl
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
Modifier and Type Method Description voidengineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)Initializes thisSSLContextinstance.Methods inherited from class org.conscrypt.OpenSSLContextImpl
engineGetServerSocketFactory, engineGetSocketFactoryMethods inherited from class org.conscrypt.SSLContextImpl
engineCreateSSLEngine, engineCreateSSLEngine, engineGetClientSessionContext, engineGetServerSessionContextMethods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
Constructor Details
-
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.- Throws:
GeneralSecurityExceptionIOException
-
-
Method Details
-
engineInit
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementExceptionDescription copied from class:SSLContextImplInitializes thisSSLContextinstance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.- Overrides:
engineInitin classSSLContextImpl- Parameters:
kms- the key sources ornulltms- the trust decision sources ornullsr- the randomness source ornull- Throws:
KeyManagementException- if initializing this instance fails
-