javax.net.ssl
public abstract class SSLContextSpi extends Object
Constructor and Description |
---|
SSLContextSpi()
Create a new SSLContextSpi.
|
Modifier and Type | Method and Description |
---|---|
protected abstract SSLEngine |
engineCreateSSLEngine()
Returns a new
SSLEngine for this context. |
protected abstract SSLEngine |
engineCreateSSLEngine(String host,
int port)
Returns a new
SSLEngine for this context, for the given
host name and port number. |
protected abstract SSLSessionContext |
engineGetClientSessionContext()
Returns the set of SSL sessions available for client connections.
|
protected abstract SSLSessionContext |
engineGetServerSessionContext()
Returns the set of SSL sessions available for server connections.
|
protected abstract SSLServerSocketFactory |
engineGetServerSocketFactory()
Returns the SSL server socket factory.
|
protected abstract SSLSocketFactory |
engineGetSocketFactory()
Returns the SSL client socket factory.
|
protected abstract void |
engineInit(KeyManager[] keyManagers,
TrustManager[] trustManagers,
SecureRandom random)
Initialize this context with key and trust managers, and a source
of randomness.
|
public SSLContextSpi()
protected abstract SSLEngine engineCreateSSLEngine()
SSLEngine
for this context.protected abstract SSLEngine engineCreateSSLEngine(String host, int port)
SSLEngine
for this context, for the given
host name and port number.host
- The local host name.port
- The local port number.protected abstract SSLSessionContext engineGetClientSessionContext()
protected abstract SSLSessionContext engineGetServerSessionContext()
protected abstract SSLServerSocketFactory engineGetServerSocketFactory()
protected abstract SSLSocketFactory engineGetSocketFactory()
protected abstract void engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom random) throws KeyManagementException
keyManagers
- The set of key managers.trustManagers
- The set of trust managers.random
- The source of randomness.KeyManagementException
- If this context cannot be
initialized with these parameters.