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
@Internal public class DefaultSSLContextImpl extends OpenSSLContextImpl
Support class for this package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultSSLContextImpl.TLSv12
static class
DefaultSSLContextImpl.TLSv13
-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLContextImpl
OpenSSLContextImpl.TLSv1, OpenSSLContextImpl.TLSv11
-
-
Field Summary
Fields Modifier and Type Field Description private static javax.net.ssl.KeyManager[]
KEY_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitorprivate static javax.net.ssl.TrustManager[]
TRUST_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor-
Fields inherited from class org.conscrypt.OpenSSLContextImpl
sslParameters
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultSSLContextImpl(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
engineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr)
Initializes thisSSLContext
instance.(package private) javax.net.ssl.KeyManager[]
getKeyManagers()
(package private) javax.net.ssl.TrustManager[]
getTrustManagers()
-
Methods inherited from class org.conscrypt.OpenSSLContextImpl
engineCreateSSLEngine, engineCreateSSLEngine, engineGetClientSessionContext, engineGetServerSessionContext, engineGetServerSocketFactory, engineGetSocketFactory, getPreferred
-
-
-
-
Field Detail
-
KEY_MANAGERS
private static javax.net.ssl.KeyManager[] KEY_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor
-
TRUST_MANAGERS
private static javax.net.ssl.TrustManager[] TRUST_MANAGERS
Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor
-
-
Constructor Detail
-
DefaultSSLContextImpl
private DefaultSSLContextImpl(java.lang.String[] protocols) throws java.security.GeneralSecurityException, java.io.IOException
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:
java.security.GeneralSecurityException
java.io.IOException
-
-
Method Detail
-
getKeyManagers
javax.net.ssl.KeyManager[] getKeyManagers() throws java.security.GeneralSecurityException, java.io.IOException
- Throws:
java.security.GeneralSecurityException
java.io.IOException
-
getTrustManagers
javax.net.ssl.TrustManager[] getTrustManagers() throws java.security.GeneralSecurityException, java.io.IOException
- Throws:
java.security.GeneralSecurityException
java.io.IOException
-
engineInit
public void engineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr) throws java.security.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:
java.security.KeyManagementException
- if initializing this instance fails
-
-