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 X509TrustManager
CertificateException
X509TrustManager.checkClientTrusted(X509Certificate[],String authType)
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
X509TrustManager.checkServerTrusted(X509Certificate[],String authType)
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
X509TrustManager.getAcceptedIssuers()
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.