com.ibm.zertjsse
Class ZERTSSLContextImplSSL_TLSv2
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- com.ibm.zertjsse.ZERTSSLContextImplSSL_TLSv2
-
public final class ZERTSSLContextImplSSL_TLSv2 extends javax.net.ssl.SSLContextSpiConstructor to pass SSL_TLSv2 protocol down to ZERTSSLContextImpl
-
-
Field Summary
Fields Modifier and Type Field and Description protected static com.ibm.zertjsse.DebugdebugDebug - Used innately to trace in each method of this class.
-
Constructor Summary
Constructors Constructor and Description ZERTSSLContextImplSSL_TLSv2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected javax.net.ssl.SSLEngineengineCreateSSLEngine()Creates a new SSLEngine using this context.protected javax.net.ssl.SSLEngineengineCreateSSLEngine(java.lang.String host, int port)Creates a SSLEngine using this context.protected javax.net.ssl.SSLSessionContextengineGetClientSessionContext()Returns a client SSLSessionContext object for this context.protected javax.net.ssl.SSLParametersengineGetDefaultSSLParameters()Returns a copy of the SSLParameters indicating the default settings for this SSL context.protected javax.net.ssl.SSLSessionContextengineGetServerSessionContext()Returns a server SSLSessionContext object for this context.protected javax.net.ssl.SSLServerSocketFactoryengineGetServerSocketFactory()Returns a ServerSocketFactory object for this context.protected javax.net.ssl.SSLSocketFactoryengineGetSocketFactory()Returns a SocketFactory object for this context.protected javax.net.ssl.SSLParametersengineGetSupportedSSLParameters()Returns a copy of the SSLParameters indicating the maximum supported settings for this SSL context.protected voidengineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom sr)Initializes this context.
-
-
-
Field Detail
-
debug
protected static final com.ibm.zertjsse.Debug debug
Debug - Used innately to trace in each method of this class.
-
-
Constructor Detail
-
ZERTSSLContextImplSSL_TLSv2
public ZERTSSLContextImplSSL_TLSv2() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderException
-
-
Method Detail
-
engineInit
protected void engineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom sr) throws java.security.KeyManagementExceptionInitializes this context.- Specified by:
engineInitin classjavax.net.ssl.SSLContextSpi- Parameters:
KeyManager[]- km - the sources of authentication keysTrustManager[]- tm - the sources of peer authentication trust decisionsSecureRandom[]- sr - the source of randomness- Throws:
java.security.KeyManagementException- if this operation fails- See Also:
- SSLContextSpi.engineInit(KeyManager [], TrustManager [], SecureRandom)
-
engineGetSocketFactory
protected javax.net.ssl.SSLSocketFactory engineGetSocketFactory() throws java.lang.IllegalStateExceptionReturns a SocketFactory object for this context.- Specified by:
engineGetSocketFactoryin classjavax.net.ssl.SSLContextSpi- Returns:
- the SocketFactory object
- Throws:
java.lang.IllegalStateException- if the SSLContextImpl requires initialization and the engineInit() has not been called- See Also:
- SSLContextSpi.engineGetSocketFactory()
-
engineGetServerSocketFactory
protected javax.net.ssl.SSLServerSocketFactory engineGetServerSocketFactory() throws java.lang.IllegalStateExceptionReturns a ServerSocketFactory object for this context.- Specified by:
engineGetServerSocketFactoryin classjavax.net.ssl.SSLContextSpi- Returns:
- the ServerSocketFactory object
- Throws:
java.lang.IllegalStateException- if the SSLContextImpl requires initialization and the engineInit() has not been called- See Also:
- SSLContextSpi.engineGetSocketFactory()
-
engineCreateSSLEngine
protected javax.net.ssl.SSLEngine engineCreateSSLEngine() throws java.lang.IllegalStateExceptionCreates a new SSLEngine using this context. Applications using this factory method are providing no hints for an internal session reuse strategy. If hints are desired, engineCreateSSLEngine(String, int) should be used instead. Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used.- Specified by:
engineCreateSSLEnginein classjavax.net.ssl.SSLContextSpi- Returns:
- the SSLEngine Object
- Throws:
java.lang.IllegalStateException- if the SSLContextImpl requires initialization and the engineInit() has not been called- Since:
- 1.5
- See Also:
- SSLContextSpi.engineCreateSSLEngine()
-
engineCreateSSLEngine
protected javax.net.ssl.SSLEngine engineCreateSSLEngine(java.lang.String host, int port) throws java.lang.IllegalStateExceptionCreates a SSLEngine using this context. 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.- Specified by:
engineCreateSSLEnginein classjavax.net.ssl.SSLContextSpi- Parameters:
host- the non-authoritative name of the hostport- the non-authoritative port- Returns:
- the SSLEngine Object
- Throws:
java.lang.IllegalStateException- if the SSLContextImpl requires initialization and the engineInit() has not been called- See Also:
- SSLContextSpi.engineCreateSSLEngine(String host, int port)
-
engineGetServerSessionContext
protected javax.net.ssl.SSLSessionContext engineGetServerSessionContext()
Returns a server SSLSessionContext object for this context.- Specified by:
engineGetServerSessionContextin classjavax.net.ssl.SSLContextSpi- Returns:
- the SSLSessionContext object
- See Also:
- SSLContextSpi.engineGetServerSessionContext()
-
engineGetClientSessionContext
protected javax.net.ssl.SSLSessionContext engineGetClientSessionContext()
Returns a client SSLSessionContext object for this context.- Specified by:
engineGetClientSessionContextin classjavax.net.ssl.SSLContextSpi- Returns:
- the SSLSessionContext object
- See Also:
- SSLContextSpi.engineGetClientSessionContext()
-
engineGetDefaultSSLParameters
protected javax.net.ssl.SSLParameters engineGetDefaultSSLParameters() throws java.lang.UnsupportedOperationExceptionReturns 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.- Overrides:
engineGetDefaultSSLParametersin classjavax.net.ssl.SSLContextSpi- Returns:
- a copy of the SSLParameters object with the default settings
- Throws:
java.lang.UnsupportedOperationException- if the default SSL parameters could not be obtained.- Since:
- 1.6
- See Also:
- SSLContextSpi.engineGetDefaultSSLParameters()
-
engineGetSupportedSSLParameters
protected javax.net.ssl.SSLParameters engineGetSupportedSSLParameters() throws java.lang.UnsupportedOperationExceptionReturns 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.- Overrides:
engineGetSupportedSSLParametersin classjavax.net.ssl.SSLContextSpi- Returns:
- a copy of the SSLParameters object with the maximum supported settings
- Throws:
java.lang.UnsupportedOperationException- if the supported SSL parameters could not be obtained.- Since:
- 1.6
- See Also:
- SSLContextSpi.engineGetSupportedSSLParameters()
-
-