Name
Class com.sun.net.ssl.SSLContext
Synopsis
This class is used to affect the context in which an SSL socket is
created; in particular, the init( )
method
allows you to provide the key and trust managers that will be used to
provide and verify the credentials used in the SSL protocol
negotiation. The key and trust managers must actually be classes that
implement the X509KeyManager
and
X509TrustManager
interfaces (unless you’ve
installed a different SSLContext
implementation).
Class Definition
public class com.sun.net.ssl.SSLContext extends java.lang.Object { // Constructors protected SSLContext(SSLContextSpi, Provider, String); // Class Methods public static SSLContext getInstance(String, String); public static SSLContext getInstance(String, Provider); public static SSLContext getInstance(String); // Instance Methods public final String getProtocol( ); public final Provider getProvider( ); public final SSLServerSocketFactory getServerSocketFactory( ); public final SSLSocketFactory getSocketFactory( ); public final void init(KeyManager[], TrustManager[], SecureRandom); }
See also
X509KeyManager , X509TrustManager
|
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.