Package aQute.bnd.url

Class HttpsVerification

    • Constructor Detail

      • HttpsVerification

        public HttpsVerification()
      • HttpsVerification

        public HttpsVerification​(java.lang.String certificates,
                                 boolean hostnameVerify,
                                 aQute.service.reporter.Reporter reporter)
      • HttpsVerification

        public HttpsVerification​(java.security.cert.X509Certificate[] certificateChain,
                                 boolean b,
                                 aQute.service.reporter.Reporter hc)
    • Method Detail

      • handle

        public void handle​(java.net.URLConnection connection)
                    throws java.lang.Exception
        Ensure Https verification is disabled or matches given certificates
        Specified by:
        handle in interface URLConnectionHandler
        Overrides:
        handle in class DefaultURLConnectionHandler
        Parameters:
        connection - The connection to modify
        Throws:
        java.lang.Exception
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.String> map)
                           throws java.lang.Exception
        Set the properties
        Specified by:
        setProperties in interface Plugin
        Overrides:
        setProperties in class DefaultURLConnectionHandler
        Parameters:
        map - attributes and directives for this plugin's clause
        Throws:
        java.lang.Exception
      • getCertificates

        public static void getCertificates​(java.lang.String paths,
                                           java.util.List<java.security.cert.X509Certificate> certificates)
                                    throws java.security.cert.CertificateException,
                                           java.io.IOException
        Throws:
        java.security.cert.CertificateException
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object