public class SimpleX509TrustManager extends Object implements X509TrustManager
| 构造器和说明 |
|---|
SimpleX509TrustManager(KeyStore keystore)
Constructor for EasyX509TrustManager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkClientTrusted(X509Certificate[] certificates,
String authType) |
void |
checkServerTrusted(X509Certificate[] certificates,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public SimpleX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException
keystore - 密钥文件NoSuchAlgorithmException - NoSuchAlgorithmExceptionKeyStoreException - KeyStoreExceptionpublic void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers 在接口中 X509TrustManagerX509TrustManager.getAcceptedIssuers()Copyright © 2022. All rights reserved.