public abstract class SSLContextSpi extends Object
SSLContext
class.Constructor and Description |
---|
SSLContextSpi()
Creates a new
SSLContextSpi instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract SSLEngine |
engineCreateSSLEngine()
Creates an
SSLEngine instance from this context. |
protected abstract SSLEngine |
engineCreateSSLEngine(String host,
int port)
Creates an
SSLEngine instance from this context with the
specified hostname and port. |
protected abstract SSLSessionContext |
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.
|
protected SSLParameters |
engineGetDefaultSSLParameters()
Returns a new SSLParameters instance that includes the default
SSL handshake parameters values including cipher suites,
protocols, and client authentication.
|
protected abstract SSLSessionContext |
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.
|
protected abstract SSLServerSocketFactory |
engineGetServerSocketFactory()
Returns a server socket factory for this instance.
|
protected abstract SSLSocketFactory |
engineGetSocketFactory()
Returns a socket factory for this instance.
|
protected SSLParameters |
engineGetSupportedSSLParameters()
Returns a new SSLParameters instance that includes all
supported cipher suites and protocols.
|
protected abstract void |
engineInit(KeyManager[] km,
TrustManager[] tm,
SecureRandom sr)
Initializes this
SSLContext instance. |
protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, 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.km
- the key sources or null
.tm
- the trust decision sources or null
.sr
- the randomness source or null.
KeyManagementException
- if initializing this instance fails.protected abstract SSLSocketFactory engineGetSocketFactory()
protected abstract SSLServerSocketFactory engineGetServerSocketFactory()
protected abstract SSLEngine engineCreateSSLEngine(String host, int port)
SSLEngine
instance from this context with the
specified hostname and port.host
- the name of the hostport
- the portSSLEngine
instance from this context.UnsupportedOperationException
- if the provider does not support the operation.protected abstract SSLEngine engineCreateSSLEngine()
SSLEngine
instance from this context.SSLEngine
instance from this context.UnsupportedOperationException
- if the provider does not support the operation.protected abstract SSLSessionContext engineGetServerSessionContext()
null
if the underlying provider does not provide an implementation of
the SSLSessionContext
interface.protected abstract SSLSessionContext engineGetClientSessionContext()
null
if the underlying provider does not provide an implementation of
the SSLSessionContext
interface.protected SSLParameters engineGetDefaultSSLParameters()
The default implementation returns an SSLParameters with values based an SSLSocket created from this instances SocketFactory.
protected SSLParameters engineGetSupportedSSLParameters()
The default implementation returns an SSLParameters with values based an SSLSocket created from this instances SocketFactory.