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 classDefaultSSLContextImpl.TLSv12static classDefaultSSLContextImpl.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_MANAGERSAccessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitorprivate static javax.net.ssl.TrustManager[]TRUST_MANAGERSAccessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor-
Fields inherited from class org.conscrypt.OpenSSLContextImpl
sslParameters
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultSSLContextImpl(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 voidengineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr)Initializes thisSSLContextinstance.(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.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:
java.security.GeneralSecurityExceptionjava.io.IOException
-
-
Method Detail
-
getKeyManagers
javax.net.ssl.KeyManager[] getKeyManagers() throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
getTrustManagers
javax.net.ssl.TrustManager[] getTrustManagers() throws java.security.GeneralSecurityException, java.io.IOException- Throws:
java.security.GeneralSecurityExceptionjava.io.IOException
-
engineInit
public void engineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr) throws java.security.KeyManagementExceptionDescription 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:
java.security.KeyManagementException- if initializing this instance fails
-
-