public final class SSLContext
extends java.lang.Object
| Modifier and Type | Method | Description | 
|---|---|---|
| static SSLContext | getInstance(java.lang.String secureProtocol) | Generates a new SSLContext object that implements the specified secure
 socket protocol. | 
| java.lang.String | getProtocol() | |
| java.lang.String | getProvider() | |
| SSLSocketFactory | getSocketFactory() | Returns an SSLSocketFactory object for this context. | 
| void | loadLocalIdentity(java.io.InputStream[] streams) | Deprecated.
 12.1.1.0 | 
| void | loadLocalIdentity(java.io.InputStream[] streams,
                 java.lang.String password) | Deprecated.
 12.1.1.0 | 
| void | loadLocalIdentity(java.security.cert.Certificate[] certs,
                 java.security.PrivateKey privateKey) | Load local identity certificate chain and key for client. | 
| void | setHostnameVerifier(HostnameVerifier hv) | Sets the HostnameVerifier for this instance of this class. | 
| void | setTrustManager(TrustManager tm) | Sets the TrustManager for this instance of this class. | 
public static SSLContext getInstance(java.lang.String secureProtocol)
secureProtocol - The handshake protocol name.public void setTrustManager(TrustManager tm)
public void setHostnameVerifier(HostnameVerifier hv)
@Deprecated public void loadLocalIdentity(java.io.InputStream[] streams)
The InputStreams you use must support mark and reset. If you have PEM-encoded data, you can wrap your InputStreams in PEMInputStream classes before passing them in here.
streams - Array of InputStreams of DER encoded valuesPEMInputStream, 
BufferedInputStream@Deprecated
public void loadLocalIdentity(java.io.InputStream[] streams,
                              java.lang.String password)
The InputStreams you use must support mark and reset. If you have PEM-encoded data, you can wrap your InputStreams in PEMInputStream classes before passing them in here.
streams - Array of InputStreams of DER encoded valuespassword - Password for private keyPEMInputStream, 
BufferedInputStreampublic void loadLocalIdentity(java.security.cert.Certificate[] certs,
                              java.security.PrivateKey privateKey)
certs - Array of certificates. All but the first of 
 the certificates are issuer certificates for the previous certificate.privateKey - Private key.public SSLSocketFactory getSocketFactory()
public java.lang.String getProtocol()
public java.lang.String getProvider()