public class

SSLContextImpl

extends SSLContextSpi
java.lang.Object
   ↳ javax.net.ssl.SSLContextSpi
     ↳ sun.security.ssl.SSLContextImpl
Known Direct Subclasses

Summary

Public Constructors
SSLContextImpl()
Protected Methods
SSLEngine engineCreateSSLEngine(String host, int port)
Creates a SSLEngine using this context.
SSLEngine engineCreateSSLEngine()
Creates a new SSLEngine using this context.
SSLSessionContext engineGetClientSessionContext()
Returns a client SSLSessionContext object for this context.
SSLSessionContext engineGetServerSessionContext()
Returns a server SSLSessionContext object for this context.
SSLServerSocketFactory engineGetServerSocketFactory()
Returns a ServerSocketFactory object for this context.
SSLSocketFactory engineGetSocketFactory()
Returns a SocketFactory object for this context.
void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
Initializes this context.
[Expand]
Inherited Methods
From class javax.net.ssl.SSLContextSpi
From class java.lang.Object

Public Constructors

public SSLContextImpl ()

Protected Methods

protected SSLEngine engineCreateSSLEngine (String host, int port)

Creates a SSLEngine using this context.

Applications using this factory method are providing hints for an internal session reuse strategy.

Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified.

Parameters
host the non-authoritative name of the host
port the non-authoritative port
Returns
  • the SSLEngine Object

protected SSLEngine engineCreateSSLEngine ()

Creates a new SSLEngine using this context.

Applications using this factory method are providing no hints for an internal session reuse strategy. If hints are desired, engineCreateSSLEngine(String, int) should be used instead.

Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used.

Returns
  • the SSLEngine Object

protected SSLSessionContext engineGetClientSessionContext ()

Returns a client SSLSessionContext object for this context.

Returns
  • the SSLSessionContext object

protected SSLSessionContext engineGetServerSessionContext ()

Returns a server SSLSessionContext object for this context.

Returns
  • the SSLSessionContext object

protected SSLServerSocketFactory engineGetServerSocketFactory ()

Returns a ServerSocketFactory object for this context.

Returns
  • the ServerSocketFactory object

protected SSLSocketFactory engineGetSocketFactory ()

Returns a SocketFactory object for this context.

Returns
  • the SocketFactory object

protected void engineInit (KeyManager[] km, TrustManager[] tm, SecureRandom sr)

Initializes this context.

Parameters
km the sources of authentication keys
tm the sources of peer authentication trust decisions
sr the source of randomness