Deprecated
For self-signed certificates prefer specifying a keystore containing the certificate when
calling the org. loadTrustMaterial
methods.
TrustAllStrategy, with the only restriction that the certificate chain
must have length 1. This means this trust strategy does not protect against man-in-the-middle
attacks. See the TrustAllStrategy for more information and more secure alternatives.
| Modifier and Type | Field and Description |
|---|---|
| public static final TrustSelfSignedStrategy | INSTANCE
Deprecated
as a consequence of
TrustSelfSignedStrategy being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isTrusted(final X509Certificate[]
the peer certificate chain chain, final String the authentication type based on the client certificate authType)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final TrustSelfSignedStrategy INSTANCE
Deprecated as a consequence of | |
| TrustSelfSignedStrategy | back to summary |
|---|---|
| public TrustSelfSignedStrategy() | |
| isTrusted | back to summary |
|---|---|
| public boolean isTrusted(final X509Certificate[] chain, final String authType) throws CertificateException Implements org. Doc from org. 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
| |