Package tigase.push.apns
Class ApnsService.SSLTrustManager
java.lang.Object
tigase.push.apns.ApnsService.SSLTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
- Enclosing class:
ApnsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleancheckCertificateFingerprint(X509Certificate certificate) voidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType) static byte[]static byte[]sha256(byte[] data)
-
Constructor Details
-
SSLTrustManager
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkCertificateChainFingerprint
-
checkCertificateFingerprint
protected boolean checkCertificateFingerprint(X509Certificate certificate) throws NoSuchAlgorithmException, CertificateEncodingException -
hexDecode
-
sha256
- Throws:
NoSuchAlgorithmException
-