SSLContextBuilder loadTrustMaterial
methods instead of implementing a custom trust strategy.
A trust strategy alone cannot be used for certificate pinning. When isTrusted returns
false the certificate check falls back to the trust manager which might consider
the certificate trusted. See the isTrusted(X509Certificate[], String) documentation.
SSLContextBuilder
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the certificate can be trusted without verification by
the trust manager, false otherwise.the peer certificate chain chain, String the authentication type based on the client certificate authType)Determines whether the certificate chain can be trusted without consulting the trust manager configured in the actual SSL context. |
| isTrusted | back to summary |
|---|---|
| public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException Determines whether the certificate chain can be trusted without consulting the trust manager configured in the actual SSL context. This method can be used to override the standard JSSE certificate verification process.
Please note that, if this method returns
| |