isTrusted
public boolean isTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
Verify that the server certificate is issued to Posten Norge AS.
Note that we have to throw an Exception to make sure that invalid certificates will be denied.
The http client TrustStrategy can only be used to used to state that a server certificate is to be
trusted without consulting the standard Java certificate verification process.
Always returns false to make sure http client will run the Java certificate verification process, which
will verify the certificate against the trust store, making sure that it's actually issued by a trusted CA.
- Specified by:
isTrusted
in interface org.apache.http.ssl.TrustStrategy
- Throws:
CertificateException
- See Also:
X509TrustManager.checkServerTrusted(X509Certificate[], String)