Class HttpsURLConnectionInfo


  • public class HttpsURLConnectionInfo
    extends HttpURLConnectionInfo
    This class holds information about the HttpsURLConnection. This class should be used when the getURL().getProtocol() is "https".
    • Field Detail

      • enabledCipherSuite

        protected String enabledCipherSuite
        This field contains the cipherSuite enabled in the HTTPS URLconnection.
      • localCertificates

        protected Certificate[] localCertificates
        This field contains the certificates that were used to authenticate the connection to the peer.
      • localPrincipal

        protected Principal localPrincipal
        This field contains the Principal that authenticated to the peer.
      • serverCertificates

        protected Certificate[] serverCertificates
        This field contains the certificates the server presented to authenticate.
      • peerPrincipal

        protected Principal peerPrincipal
        This field contains the Principal that represents the authenticated peer.
    • Constructor Detail

      • HttpsURLConnectionInfo

        public HttpsURLConnectionInfo​(HttpURLConnection connection)
                               throws IOException
        This constructor is used to create the info object representing the this HttpsURLConnection. Connection parameter is of supertype HttpURLConnection, which allows internal cast to potentially divergent subtype (Https) implementations.
        Throws:
        IOException
    • Method Detail

      • getEnabledCipherSuite

        public String getEnabledCipherSuite()
        This method returns the cipher suite employed in this HttpsURLConnection.
      • getLocalCertificates

        public Certificate[] getLocalCertificates()
        This method returns the certificates that were used to authenticate to the peer.
      • getLocalPrincipal

        public Principal getLocalPrincipal()
        This method returns the Princpal that authenticated to the peer.
      • getServerCertificates

        public Certificate[] getServerCertificates()
        This method returns the certificates presented by the peer for authentication.
      • getPeerPrincipal

        public Principal getPeerPrincipal()
        This method returns the Principal that represents the authenticated peer.