Package io.grpc.util

Interface AdvancedTlsX509TrustManager.SslSocketAndEnginePeerVerifier

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void verifyPeerCertificate​(java.security.cert.X509Certificate[] peerCertChain, java.lang.String authType, java.net.Socket socket)
      Verifies the peer certificate chain.
      void verifyPeerCertificate​(java.security.cert.X509Certificate[] peerCertChain, java.lang.String authType, javax.net.ssl.SSLEngine engine)
      Verifies the peer certificate chain.
    • Method Detail

      • verifyPeerCertificate

        void verifyPeerCertificate​(java.security.cert.X509Certificate[] peerCertChain,
                                   java.lang.String authType,
                                   java.net.Socket socket)
                            throws java.security.cert.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:
        java.security.cert.CertificateException
      • verifyPeerCertificate

        void verifyPeerCertificate​(java.security.cert.X509Certificate[] peerCertChain,
                                   java.lang.String authType,
                                   javax.net.ssl.SSLEngine engine)
                            throws java.security.cert.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:
        java.security.cert.CertificateException