SSLContext class.
All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a particular SSL context.
SSLContext
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract SSLEngine | |
| protected abstract SSLEngine | Returns: theSSLEngine Objectthe non-authoritative name of the host host, int the non-authoritative port port)Creates a |
| protected abstract SSLSessionContext | Returns: theSSLSessionContext objectReturns a client |
| protected SSLParameters | Returns: a copy of the SSLParameters object with the default settingsReturns a copy of the SSLParameters indicating the default settings for this SSL context. |
| protected abstract SSLSessionContext | Returns: theSSLSessionContext objectReturns a server |
| protected abstract SSLServerSocketFactory | Returns: theServerSocketFactory objectReturns a |
| protected abstract SSLSocketFactory | Returns: theSocketFactory objectReturns a |
| protected SSLParameters | Returns: a copy of the SSLParameters object with the maximum supported settingsReturns a copy of the SSLParameters indicating the maximum supported settings for this SSL context. |
| protected abstract void | engineInit(KeyManager[]
the sources of authentication keys km, TrustManager[] the sources of peer authentication trust decisions tm, SecureRandom the source of randomness sr)Initializes this context. |
| private SSLSocket |
| SSLContextSpi | back to summary |
|---|---|
| public SSLContextSpi() Constructor for subclasses to call. | |
| engineCreateSSLEngine | back to summary |
|---|---|
| protected abstract SSLEngine engineCreateSSLEngine() Creates a new
Applications using this factory method are providing no hints
for an internal session reuse strategy. If hints are desired,
Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used. Implementation Note It is provider-specific if the returned SSLEngine uses client or
server mode by default for the (D)TLS connection. The JDK SunJSSE
provider implementation uses server mode by default. However, it
is recommended to always set the desired mode explicitly by calling
| |
| engineCreateSSLEngine | back to summary |
|---|---|
| protected abstract SSLEngine engineCreateSSLEngine(String host, int port) Creates a Applications using this factory method are providing hints for an internal session reuse strategy. Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified. Implementation Note It is provider-specific if the returned SSLEngine uses client or
server mode by default for the (D)TLS connection. The JDK SunJSSE
provider implementation uses server mode by default. However, it
is recommended to always set the desired mode explicitly by calling
| |
| engineGetClientSessionContext | back to summary |
|---|---|
| protected abstract SSLSessionContext engineGetClientSessionContext() Returns a client
| |
| engineGetDefaultSSLParameters | back to summary |
|---|---|
| protected SSLParameters engineGetDefaultSSLParameters() Returns a copy of the SSLParameters indicating the default settings for this SSL context. The parameters will always have the ciphersuite and protocols arrays set to non-null values. The default implementation obtains the parameters from an SSLSocket created by calling the SocketFactory.createSocket() method of this context's SocketFactory.
| |
| engineGetServerSessionContext | back to summary |
|---|---|
| protected abstract SSLSessionContext engineGetServerSessionContext() Returns a server
| |
| engineGetServerSocketFactory | back to summary |
|---|---|
| protected abstract SSLServerSocketFactory engineGetServerSocketFactory() Returns a
| |
| engineGetSocketFactory | back to summary |
|---|---|
| protected abstract SSLSocketFactory engineGetSocketFactory() Returns a
| |
| engineGetSupportedSSLParameters | back to summary |
|---|---|
| protected SSLParameters engineGetSupportedSSLParameters() Returns a copy of the SSLParameters indicating the maximum supported settings for this SSL context. The parameters will always have the ciphersuite and protocols arrays set to non-null values. The default implementation obtains the parameters from an SSLSocket created by calling the SocketFactory.createSocket() method of this context's SocketFactory.
| |
| engineInit | back to summary |
|---|---|
| protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) throws KeyManagementException Initializes this context.
| |
| getDefaultSocket | back to summary |
|---|---|
| private SSLSocket getDefaultSocket() | |