< prev index next >

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

Print this page




  32 import java.util.*;
  33 import java.security.*;
  34 import javax.net.ssl.*;
  35 
  36 /**
  37  * This class defines the <i>Service Provider Interface</i> (<b>SPI</b>)
  38  * for the <code>SSLContext</code> class.
  39  *
  40  * <p> All the abstract methods in this class must be implemented by each
  41  * cryptographic service provider who wishes to supply the implementation
  42  * of a particular SSL context.
  43  *
  44  * @deprecated As of JDK 1.4, this implementation-specific class was
  45  *      replaced by {@link javax.net.ssl.SSLContextSpi}.
  46  */
  47 @Deprecated
  48 public abstract class SSLContextSpi {
  49     /**
  50      * Initializes this context.
  51      *
  52      * @param km the sources of authentication keys
  53      * @param tm the sources of peer authentication trust decisions
  54      * @param random the source of randomness for this generator
  55      */
  56     protected abstract void engineInit(KeyManager[] ah, TrustManager[] th,
  57         SecureRandom sr) throws KeyManagementException;
  58 
  59     /**
  60      * Returns a <code>SocketFactory</code> object for this
  61      * context.
  62      *
  63      * @return the factory
  64      */
  65     protected abstract SSLSocketFactory engineGetSocketFactory();
  66 
  67     /**
  68      * Returns a <code>ServerSocketFactory</code> object for
  69      * this context.
  70      *
  71      * @return the factory
  72      */
  73     protected abstract SSLServerSocketFactory engineGetServerSocketFactory();
  74 }


  32 import java.util.*;
  33 import java.security.*;
  34 import javax.net.ssl.*;
  35 
  36 /**
  37  * This class defines the <i>Service Provider Interface</i> (<b>SPI</b>)
  38  * for the <code>SSLContext</code> class.
  39  *
  40  * <p> All the abstract methods in this class must be implemented by each
  41  * cryptographic service provider who wishes to supply the implementation
  42  * of a particular SSL context.
  43  *
  44  * @deprecated As of JDK 1.4, this implementation-specific class was
  45  *      replaced by {@link javax.net.ssl.SSLContextSpi}.
  46  */
  47 @Deprecated
  48 public abstract class SSLContextSpi {
  49     /**
  50      * Initializes this context.
  51      *
  52      * @param ah the sources of authentication keys
  53      * @param th the sources of peer authentication trust decisions
  54      * @param sr the source of randomness for this generator
  55      */
  56     protected abstract void engineInit(KeyManager[] ah, TrustManager[] th,
  57         SecureRandom sr) throws KeyManagementException;
  58 
  59     /**
  60      * Returns a <code>SocketFactory</code> object for this
  61      * context.
  62      *
  63      * @return the factory
  64      */
  65     protected abstract SSLSocketFactory engineGetSocketFactory();
  66 
  67     /**
  68      * Returns a <code>ServerSocketFactory</code> object for
  69      * this context.
  70      *
  71      * @return the factory
  72      */
  73     protected abstract SSLServerSocketFactory engineGetServerSocketFactory();
  74 }
< prev index next >