Package io.grpc.util

Interface AdvancedTlsX509TrustManager.SslSocketAndEnginePeerVerifier

    • Method Detail

      • verifyPeerCertificate

        void verifyPeerCertificate​(X509Certificate[] peerCertChain,
                                   String authType,
                                   Socket socket)
                            throws CertificateException
        Verifies the peer certificate chain. For more information, please refer to X509ExtendedTrustManager.
        Parameters:
        peerCertChain - the certificate chain sent from the peer
        authType - the key exchange algorithm used, e.g. "RSA", "DHE_DSS", etc
        socket - the socket used for this connection. This parameter can be null, which indicates that implementations need not check the ssl parameters
        Throws:
        CertificateException
      • verifyPeerCertificate

        void verifyPeerCertificate​(X509Certificate[] peerCertChain,
                                   String authType,
                                   SSLEngine engine)
                            throws CertificateException
        Verifies the peer certificate chain. For more information, please refer to X509ExtendedTrustManager.
        Parameters:
        peerCertChain - the certificate chain sent from the peer
        authType - the key exchange algorithm used, e.g. "RSA", "DHE_DSS", etc
        engine - the engine used for this connection. This parameter can be null, which indicates that implementations need not check the ssl parameters
        Throws:
        CertificateException