Package org.conscrypt
Class DefaultSSLContextImpl
java.lang.Object
javax.net.ssl.SSLContextSpi
org.conscrypt.OpenSSLContextImpl
org.conscrypt.DefaultSSLContextImpl
- Direct Known Subclasses:
DefaultSSLContextImpl.TLSv12
,DefaultSSLContextImpl.TLSv13
Support class for this package.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLContextImpl
OpenSSLContextImpl.TLSv1, OpenSSLContextImpl.TLSv11
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static KeyManager[]
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitorprivate static TrustManager[]
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitorFields inherited from class org.conscrypt.OpenSSLContextImpl
sslParameters
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DefaultSSLContextImpl
(String[] protocols) 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 TypeMethodDescriptionvoid
engineInit
(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) Initializes thisSSLContext
instance.(package private) KeyManager[]
(package private) TrustManager[]
Methods inherited from class org.conscrypt.OpenSSLContextImpl
engineCreateSSLEngine, engineCreateSSLEngine, engineGetClientSessionContext, engineGetServerSessionContext, engineGetServerSocketFactory, engineGetSocketFactory, getPreferred
Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
Field Details
-
KEY_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor -
TRUST_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor
-
-
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:
GeneralSecurityException
IOException
-
-
Method Details
-
getKeyManagers
- Throws:
GeneralSecurityException
IOException
-
getTrustManagers
- Throws:
GeneralSecurityException
IOException
-
engineInit
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException Description copied from class:OpenSSLContextImpl
Initializes thisSSLContext
instance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.- Overrides:
engineInit
in classOpenSSLContextImpl
- Parameters:
kms
- the key sources ornull
tms
- the trust decision sources ornull
sr
- the randomness source ornull
- Throws:
KeyManagementException
- if initializing this instance fails
-