javax.net.ssl
public abstract class SSLContextSpi extends Object
Constructor Summary | |
---|---|
SSLContextSpi()
Create a new SSLContextSpi. |
Method Summary | |
---|---|
protected abstract SSLEngine | engineCreateSSLEngine()
Returns a new {@link SSLEngine} for this context.
|
protected abstract SSLEngine | engineCreateSSLEngine(String host, int port)
Returns a new {@link 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. |
Returns: A new SSLEngine.
Since: 1.5
Parameters: host The local host name. port The local port number.
Returns: A new SSLEngine.
Since: 1.5
Returns: The set of SSL sessions available for client connections.
Returns: The set of SSL sessions available for server connections.
Returns: The SSL server socket factory.
Returns: The SSL client socket factory.
Parameters: keyManagers The set of key managers. trustManagers The set of trust managers. random The source of randomness.
Throws: KeyManagementException If this context cannot be initialized with these parameters.