Top Description Inners Fields Constructors Methods
org.conscrypt

public Class DefaultSSLContextImpl

extends OpenSSLContextImpl
Class Inheritance
Known Direct Subclasses
org.conscrypt.DefaultSSLContextImpl.TLSv13, org.conscrypt.DefaultSSLContextImpl.TLSv12
Annotations
@Internal
Imports
java.io.BufferedInputStream, .FileInputStream, .IOException, .InputStream, java.security.GeneralSecurityException, .KeyManagementException, .KeyStore, .SecureRandom, javax.net.ssl.KeyManager, .KeyManagerFactory, .TrustManager, .TrustManagerFactory

Support class for this package.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static KeyManager[]
KEY_MANAGERS

Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor

private static TrustManager[]
TRUST_MANAGERS

Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor

Inherited from org.conscrypt.OpenSSLContextImpl:
sslParameters

Constructor Summary

AccessConstructor and Description
private
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 TypeMethod and Description
public void
engineInit(KeyManager[]
the key sources or null
kms
,
TrustManager[]
the trust decision sources or null
tms
,
SecureRandom
the randomness source or null
sr
)

Overrides org.conscrypt.OpenSSLContextImpl.engineInit.

Initializes this SSLContext instance.
pack-priv KeyManager[]
pack-priv TrustManager[]
Inherited from org.conscrypt.OpenSSLContextImpl:
engineCreateSSLEngineengineCreateSSLEngineengineGetClientSessionContextengineGetServerSessionContextengineGetServerSocketFactoryengineGetSocketFactorygetPreferred

Field Detail

KEY_MANAGERSback to summary
private static KeyManager[] KEY_MANAGERS

Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor

TRUST_MANAGERSback to summary
private static TrustManager[] TRUST_MANAGERS

Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor

Constructor Detail

DefaultSSLContextImplback to summary
private DefaultSSLContextImpl(String[] protocols) throws GeneralSecurityException, 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.

Method Detail

engineInitback to summary
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException

Overrides org.conscrypt.OpenSSLContextImpl.engineInit.

Doc from org.conscrypt.OpenSSLContextImpl.engineInit.

Initializes this SSLContext instance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.

Parameters
kms:KeyManager[]

the key sources or null

tms:TrustManager[]

the trust decision sources or null

sr:SecureRandom

the randomness source or null

Annotations
@Override
Exceptions
KeyManagementException:
if initializing this instance fails
getKeyManagersback to summary
pack-priv KeyManager[] getKeyManagers() throws GeneralSecurityException, IOException
getTrustManagersback to summary
pack-priv TrustManager[] getTrustManagers() throws GeneralSecurityException, IOException
org.conscrypt back to summary

public final Class DefaultSSLContextImpl.TLSv12

extends DefaultSSLContextImpl
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.conscrypt.DefaultSSLContextImpl:
engineInitgetKeyManagersgetTrustManagers

Constructor Detail

TLSv12back to summary
public TLSv12() throws GeneralSecurityException, IOException
org.conscrypt back to summary

public final Class DefaultSSLContextImpl.TLSv13

extends DefaultSSLContextImpl
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.conscrypt.DefaultSSLContextImpl:
engineInitgetKeyManagersgetTrustManagers

Constructor Detail

TLSv13back to summary
public TLSv13() throws GeneralSecurityException, IOException