public interface TrustStrategy
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Determines whether the certificate chain can be trusted without consulting the trust manager
configured in the actual SSL context.
|
boolean isTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
Please note that, if this method returns false, the trust manager configured
in the actual SSL context can still clear the certificate as trusted.
chain - the peer certificate chainauthType - the authentication category based on the client certificatetrue if the certificate can be trusted without verification by
the trust manager, false otherwise.java.security.cert.CertificateException - thrown if the certificate is not trusted or invalid.