public class SSLContextImpl extends SSLContextSpi
Modifier and Type | Field and Description |
---|---|
protected SSLParametersImpl |
sslParameters |
Modifier | Constructor and Description |
---|---|
|
SSLContextImpl() |
protected |
SSLContextImpl(DefaultSSLContextImpl dummy)
Constuctor for the DefaultSSLContextImpl.
|
Modifier and Type | Method and Description |
---|---|
SSLEngine |
engineCreateSSLEngine()
Creates an
SSLEngine instance from this context. |
SSLEngine |
engineCreateSSLEngine(String host,
int port)
Creates an
SSLEngine instance from this context with the
specified hostname and port. |
ClientSessionContext |
engineGetClientSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions
that can be used for the client side of the SSL handshake.
|
ServerSessionContext |
engineGetServerSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions
that can be used for the server side of the SSL handshake.
|
SSLServerSocketFactory |
engineGetServerSocketFactory()
Returns a server socket factory for this instance.
|
SSLSocketFactory |
engineGetSocketFactory()
Returns a socket factory for this instance.
|
void |
engineInit(KeyManager[] kms,
TrustManager[] tms,
SecureRandom sr)
Initializes this
SSLContext instance. |
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
protected SSLParametersImpl sslParameters
public SSLContextImpl()
protected SSLContextImpl(DefaultSSLContextImpl dummy) throws GeneralSecurityException, IOException
dummy
- is null, used to distinguish this case from the
public SSLContextImpl() constructor.GeneralSecurityException
IOException
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException
SSLContext
instance. All of the arguments are
optional, and the security providers will be searched for the required
implementations of the needed algorithms.engineInit
in class SSLContextSpi
kms
- the key sources or null
tms
- the trust decision sources or null
sr
- the randomness source or null
KeyManagementException
- if initializing this instance failspublic SSLSocketFactory engineGetSocketFactory()
SSLContextSpi
engineGetSocketFactory
in class SSLContextSpi
public SSLServerSocketFactory engineGetServerSocketFactory()
SSLContextSpi
engineGetServerSocketFactory
in class SSLContextSpi
public SSLEngine engineCreateSSLEngine(String host, int port)
SSLContextSpi
SSLEngine
instance from this context with the
specified hostname and port.engineCreateSSLEngine
in class SSLContextSpi
host
- the name of the hostport
- the portSSLEngine
instance from this context.public SSLEngine engineCreateSSLEngine()
SSLContextSpi
SSLEngine
instance from this context.engineCreateSSLEngine
in class SSLContextSpi
SSLEngine
instance from this context.public ServerSessionContext engineGetServerSessionContext()
SSLContextSpi
engineGetServerSessionContext
in class SSLContextSpi
null
if the underlying provider does not provide an implementation of
the SSLSessionContext
interface.public ClientSessionContext engineGetClientSessionContext()
SSLContextSpi
engineGetClientSessionContext
in class SSLContextSpi
null
if the underlying provider does not provide an implementation of
the SSLSessionContext
interface.