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.SSLContextSpi
    Constructor to pass SSL_TLSv2 protocol down to ZERTSSLContextImpl
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected static com.ibm.zertjsse.Debug debug
      Debug - Used innately to trace in each method of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected javax.net.ssl.SSLEngine engineCreateSSLEngine()
      Creates a new SSLEngine using this context.
      protected javax.net.ssl.SSLEngine engineCreateSSLEngine(java.lang.String host, int port)
      Creates a SSLEngine using this context.
      protected javax.net.ssl.SSLSessionContext engineGetClientSessionContext()
      Returns a client SSLSessionContext object for this context.
      protected javax.net.ssl.SSLParameters engineGetDefaultSSLParameters()
      Returns a copy of the SSLParameters indicating the default settings for this SSL context.
      protected javax.net.ssl.SSLSessionContext engineGetServerSessionContext()
      Returns a server SSLSessionContext object for this context.
      protected javax.net.ssl.SSLServerSocketFactory engineGetServerSocketFactory()
      Returns a ServerSocketFactory object for this context.
      protected javax.net.ssl.SSLSocketFactory engineGetSocketFactory()
      Returns a SocketFactory object for this context.
      protected javax.net.ssl.SSLParameters engineGetSupportedSSLParameters()
      Returns a copy of the SSLParameters indicating the maximum supported settings for this SSL context.
      protected void engineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom sr)
      Initializes this context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.NoSuchAlgorithmException
        java.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.KeyManagementException
        Initializes this context.
        Specified by:
        engineInit in class javax.net.ssl.SSLContextSpi
        Parameters:
        KeyManager[] - km - the sources of authentication keys
        TrustManager[] - tm - the sources of peer authentication trust decisions
        SecureRandom[] - 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.IllegalStateException
        Returns a SocketFactory object for this context.
        Specified by:
        engineGetSocketFactory in class javax.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.IllegalStateException
        Returns a ServerSocketFactory object for this context.
        Specified by:
        engineGetServerSocketFactory in class javax.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.IllegalStateException
        Creates 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:
        engineCreateSSLEngine in class javax.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.IllegalStateException
        Creates 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:
        engineCreateSSLEngine in class javax.net.ssl.SSLContextSpi
        Parameters:
        host - the non-authoritative name of the host
        port - 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:
        engineGetServerSessionContext in class javax.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:
        engineGetClientSessionContext in class javax.net.ssl.SSLContextSpi
        Returns:
        the SSLSessionContext object
        See Also:
        SSLContextSpi.engineGetClientSessionContext()
      • engineGetDefaultSSLParameters

        protected javax.net.ssl.SSLParameters engineGetDefaultSSLParameters()
                                                                     throws java.lang.UnsupportedOperationException
        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.
        Overrides:
        engineGetDefaultSSLParameters in class javax.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.UnsupportedOperationException
        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.
        Overrides:
        engineGetSupportedSSLParameters in class javax.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()
� Portions Copyright 2018 IBM Corporation. � Portions Copyright 2018, Oracle and/or its affiliates.