< prev index next >

src/java.base/share/classes/com/sun/net/ssl/SSLContext.java

Print this page




  41  * implementation which acts as a factory for secure socket
  42  * factories. This class is initialized with an optional set of
  43  * key and trust managers and source of secure random bytes.
  44  *
  45  * @deprecated As of JDK 1.4, this implementation-specific class was
  46  *      replaced by {@link javax.net.ssl.SSLContext}.
  47  */
  48 @Deprecated
  49 public class SSLContext {
  50     private Provider provider;
  51 
  52     private SSLContextSpi contextSpi;
  53 
  54     private String protocol;
  55 
  56     /**
  57      * Creates an SSLContext object.
  58      *
  59      * @param contextSpi the delegate
  60      * @param provider the provider
  61      * @param algorithm the algorithm
  62      */
  63     protected SSLContext(SSLContextSpi contextSpi, Provider provider,
  64         String protocol) {
  65         this.contextSpi = contextSpi;
  66         this.provider = provider;
  67         this.protocol = protocol;
  68     }
  69 
  70     /**
  71      * Generates a <code>SSLContext</code> object that implements the
  72      * specified secure socket protocol.
  73      *
  74      * @param protocol the standard name of the requested protocol.
  75      *
  76      * @return the new <code>SSLContext</code> object
  77      *
  78      * @exception NoSuchAlgorithmException if the specified protocol is not
  79      * available in the default provider package or any of the other provider
  80      * packages that were searched.
  81      */




  41  * implementation which acts as a factory for secure socket
  42  * factories. This class is initialized with an optional set of
  43  * key and trust managers and source of secure random bytes.
  44  *
  45  * @deprecated As of JDK 1.4, this implementation-specific class was
  46  *      replaced by {@link javax.net.ssl.SSLContext}.
  47  */
  48 @Deprecated
  49 public class SSLContext {
  50     private Provider provider;
  51 
  52     private SSLContextSpi contextSpi;
  53 
  54     private String protocol;
  55 
  56     /**
  57      * Creates an SSLContext object.
  58      *
  59      * @param contextSpi the delegate
  60      * @param provider the provider
  61      * @param protocol the protocol
  62      */
  63     protected SSLContext(SSLContextSpi contextSpi, Provider provider,
  64         String protocol) {
  65         this.contextSpi = contextSpi;
  66         this.provider = provider;
  67         this.protocol = protocol;
  68     }
  69 
  70     /**
  71      * Generates a <code>SSLContext</code> object that implements the
  72      * specified secure socket protocol.
  73      *
  74      * @param protocol the standard name of the requested protocol.
  75      *
  76      * @return the new <code>SSLContext</code> object
  77      *
  78      * @exception NoSuchAlgorithmException if the specified protocol is not
  79      * available in the default provider package or any of the other provider
  80      * packages that were searched.
  81      */


< prev index next >