Package io.grpc.util
Interface AdvancedTlsX509TrustManager.SslSocketAndEnginePeerVerifier
-
- Enclosing class:
- AdvancedTlsX509TrustManager
public static interface AdvancedTlsX509TrustManager.SslSocketAndEnginePeerVerifier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
verifyPeerCertificate(X509Certificate[] peerCertChain, String authType, Socket socket)
Verifies the peer certificate chain.void
verifyPeerCertificate(X509Certificate[] peerCertChain, String authType, SSLEngine engine)
Verifies the peer certificate chain.
-
-
-
Method Detail
-
verifyPeerCertificate
void verifyPeerCertificate(X509Certificate[] peerCertChain, String authType, Socket socket) throws CertificateException
Verifies the peer certificate chain. For more information, please refer toX509ExtendedTrustManager
.- Parameters:
peerCertChain
- the certificate chain sent from the peerauthType
- the key exchange algorithm used, e.g. "RSA", "DHE_DSS", etcsocket
- 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 toX509ExtendedTrustManager
.- Parameters:
peerCertChain
- the certificate chain sent from the peerauthType
- the key exchange algorithm used, e.g. "RSA", "DHE_DSS", etcengine
- the engine used for this connection. This parameter can be null, which indicates that implementations need not check the ssl parameters- Throws:
CertificateException
-
-