Home » openjdk-7 » javax » net » ssl » [javadoc | source]
javax.net.ssl
abstract public class: SSLContextSpi [javadoc | source]
java.lang.Object
   javax.net.ssl.SSLContextSpi
This class defines the Service Provider Interface (SPI) for the SSLContext class.

All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a particular SSL context.

Method from javax.net.ssl.SSLContextSpi Summary:
engineCreateSSLEngine,   engineCreateSSLEngine,   engineGetClientSessionContext,   engineGetDefaultSSLParameters,   engineGetServerSessionContext,   engineGetServerSocketFactory,   engineGetSocketFactory,   engineGetSupportedSSLParameters,   engineInit
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.net.ssl.SSLContextSpi Detail:
 abstract 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.

 abstract 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.

 abstract protected SSLSessionContext engineGetClientSessionContext()
    Returns a client SSLSessionContext object for this context.
 protected SSLParameters engineGetDefaultSSLParameters() 
    Returns a copy of the SSLParameters indicating the default settings for this SSL context.

    The parameters will always have the ciphersuite and protocols arrays set to non-null values.

    The default implementation obtains the parameters from an SSLSocket created by calling the {@linkplain javax.net.SocketFactory#createSocket SocketFactory.createSocket()} method of this context's SocketFactory.

 abstract protected SSLSessionContext engineGetServerSessionContext()
    Returns a server SSLSessionContext object for this context.
 abstract protected SSLServerSocketFactory engineGetServerSocketFactory()
    Returns a ServerSocketFactory object for this context.
 abstract protected SSLSocketFactory engineGetSocketFactory()
    Returns a SocketFactory object for this context.
 protected SSLParameters engineGetSupportedSSLParameters() 
    Returns a copy of the SSLParameters indicating the maximum supported settings for this SSL context.

    The parameters will always have the ciphersuite and protocols arrays set to non-null values.

    The default implementation obtains the parameters from an SSLSocket created by calling the {@linkplain javax.net.SocketFactory#createSocket SocketFactory.createSocket()} method of this context's SocketFactory.

 abstract protected  void engineInit(KeyManager[] km,
    TrustManager[] tm,
    SecureRandom sr) throws KeyManagementException
    Initializes this context.