Save This Page
Home » openjdk-7 » com.sun.net » ssl » [javadoc | source]
com.sun.net.ssl
public class: SSLContext [javadoc | source]
java.lang.Object
   com.sun.net.ssl.SSLContext
Deprecated! As - of JDK 1.4, this implementation-specific class was replaced by javax.net.ssl.SSLContext .

Instances of this class represent a secure socket protocol implementation which acts as a factory for secure socket factories. This class is initialized with an optional set of key and trust managers and source of secure random bytes.
Constructor:
 protected SSLContext(SSLContextSpi contextSpi,
    Provider provider,
    String protocol) 
    Creates an SSLContext object.
    Parameters:
    contextSpi - the delegate
    provider - the provider
    algorithm - the algorithm
Method from com.sun.net.ssl.SSLContext Summary:
getInstance,   getInstance,   getInstance,   getProtocol,   getProvider,   getServerSocketFactory,   getSocketFactory,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.net.ssl.SSLContext Detail:
 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException 
      Deprecated!
    Generates a SSLContext object that implements the specified secure socket protocol.
 public static SSLContext getInstance(String protocol,
    String provider) throws NoSuchProviderException, NoSuchAlgorithmException 
      Deprecated!
    Generates a SSLContext object that implements the specified secure socket protocol.
 public static SSLContext getInstance(String protocol,
    Provider provider) throws NoSuchAlgorithmException 
      Deprecated!
    Generates a SSLContext object that implements the specified secure socket protocol.
 public final String getProtocol() 
      Deprecated!
    Returns the protocol name of this SSLContext object.

    This is the same name that was specified in one of the getInstance calls that created this SSLContext object.

 public final Provider getProvider() 
      Deprecated!
    Returns the provider of this SSLContext object.
 public final SSLServerSocketFactory getServerSocketFactory() 
      Deprecated!
    Returns a ServerSocketFactory object for this context.
 public final SSLSocketFactory getSocketFactory() 
      Deprecated!
    Returns a SocketFactory object for this context.
 public final  void init(KeyManager[] km,
    TrustManager[] tm,
    SecureRandom random) throws KeyManagementException 
      Deprecated!
    Initializes this context. Either of the first two parameters may be null in which case the installed security providers will be searched for the highest priority implementation of the appropriate factory. Likewise, the secure random parameter may be null in which case the default implementation will be used.