Class SSLSupportImpl

  • All Implemented Interfaces:
    SSLSupport

    public class SSLSupportImpl
    extends java.lang.Object
    implements SSLSupport
    Author:
    oleksiys
    • Constructor Detail

      • SSLSupportImpl

        public SSLSupportImpl​(Connection connection)
    • Method Detail

      • getCipherSuite

        public java.lang.String getCipherSuite()
                                        throws java.io.IOException
        Description copied from interface: SSLSupport
        The cipher suite being used on this connection.
        Specified by:
        getCipherSuite in interface SSLSupport
        Throws:
        java.io.IOException
      • getPeerCertificates

        public java.security.cert.Certificate[] getPeerCertificates()
                                                             throws java.io.IOException
        Specified by:
        getPeerCertificates in interface SSLSupport
        Returns:
        The client certificate chain (if any).
        Throws:
        java.io.IOException
      • getCertificates

        protected java.security.cert.Certificate[] getCertificates​(javax.net.ssl.SSLSession session)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getPeerCertificates

        public java.security.cert.Certificate[] getPeerCertificates​(boolean force)
                                                             throws java.io.IOException
        Specified by:
        getPeerCertificates in interface SSLSupport
        Parameters:
        force - If true, then re-negotiate the connection if necessary.
        Returns:
        The client certificate chain (if any).
        Throws:
        java.io.IOException
      • getKeySize

        public java.lang.Integer getKeySize()
                                     throws java.io.IOException
        Copied from org.apache.catalina.valves.CertificateValve
        Specified by:
        getKeySize in interface SSLSupport
        Throws:
        java.io.IOException
      • getSessionId

        public java.lang.String getSessionId()
                                      throws java.io.IOException
        Description copied from interface: SSLSupport
        The current session Id.
        Specified by:
        getSessionId in interface SSLSupport
        Throws:
        java.io.IOException