Class HopTrustManager

    • Method Detail

      • getAcceptedIssuers

        public X509Certificate[] getAcceptedIssuers()
        Pass method from x509TrustManager to this class...
        Specified by:
        getAcceptedIssuers in interface X509TrustManager
        Returns:
        an array of certificate authority certificates which are trusted for authenticating peers
      • checkClientTrusted

        public void checkClientTrusted​(X509Certificate[] chain,
                                       String authType)
                                throws CertificateException
        Pass method from x509TrustManager to this class...

        Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for client SSL authentication based on the authentication type

        Specified by:
        checkClientTrusted in interface X509TrustManager
        Throws:
        CertificateException
      • checkServerTrusted

        public void checkServerTrusted​(X509Certificate[] chain,
                                       String authType)
                                throws CertificateException
        Pass method from x509TrustManager to this class...

        Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for server SSL authentication based on the authentication type

        Specified by:
        checkServerTrusted in interface X509TrustManager
        Throws:
        CertificateException