public interface TrustStrategy
boolean isTrusted(X509Certificate chain, String authType) throws 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 chain
authType- the authentication type based on the client certificate
trueif the certificate can be trusted without verification by the trust manager,
CertificateException- thrown if the certificate is not trusted or invalid.
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.