@Contract(threading=STATELESS) public class TrustSelfSignedStrategy extends Object implements TrustStrategy
| 限定符和类型 | 字段和说明 |
|---|---|
static TrustSelfSignedStrategy |
INSTANCE |
| 构造器和说明 |
|---|
TrustSelfSignedStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isTrusted(X509Certificate[] chain,
String authType)
Determines whether the certificate chain can be trusted without consulting the trust manager
configured in the actual SSL context.
|
public static final TrustSelfSignedStrategy INSTANCE
public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException
TrustStrategy
Please note that, if this method returns false, the trust manager configured
in the actual SSL context can still clear the certificate as trusted.
isTrusted 在接口中 TrustStrategychain - the peer certificate chainauthType - the authentication type based on the client certificatetrue if the certificate can be trusted without verification by
the trust manager, false otherwise.CertificateException - thrown if the certificate is not trusted or invalid.Copyright © 2023. All rights reserved.