public class CustomX509TrustManager extends Object implements X509TrustManager
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
allowselfsigned |
static org.slf4j.Logger |
logger |
protected static boolean |
verifyserver |
| Constructor and Description |
|---|
CustomX509TrustManager(KeyStore keystore)
Constructor for Custom509TrustManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] certificates,
String authType) |
void |
checkServerTrusted(X509Certificate[] certificates,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
static void |
setAllowSelfSigned(boolean tf) |
static void |
setVerifyServer(boolean tf) |
public static org.slf4j.Logger logger
protected static boolean verifyserver
protected static boolean allowselfsigned
public CustomX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException
public static void setVerifyServer(boolean tf)
public static void setAllowSelfSigned(boolean tf)
public void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionX509TrustManager.checkClientTrusted(X509Certificate[],String authType)public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionX509TrustManager.checkServerTrusted(X509Certificate[],String authType)public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerX509TrustManager.getAcceptedIssuers()Copyright © 1999-2015 UCAR/Unidata. All Rights Reserved.