public class FigoTrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
FigoTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTrustedFingerprint(String fingerprint)
Add a fingerprint to the trusted list, e.g.
|
void |
checkClientTrusted(X509Certificate[] certs,
String authType) |
void |
checkServerTrusted(X509Certificate[] certs,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
static List<String> |
getTrustedFingerprints() |
public static List<String> getTrustedFingerprints()
public static void addTrustedFingerprint(String fingerprint)
fingerprint - the SHA256 hash of the SSL certificate in upper casepublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerpublic void checkClientTrusted(X509Certificate[] certs, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] certs, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionCopyright © 2018 figo GmbH. All rights reserved.