Package tigase.push.apns
Class ApnsService.SSLTrustManager
- java.lang.Object
-
- tigase.push.apns.ApnsService.SSLTrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager,javax.net.ssl.X509TrustManager
- Enclosing class:
- ApnsService
public static class ApnsService.SSLTrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManager
-
-
Constructor Summary
Constructors Constructor Description SSLTrustManager(javax.net.ssl.TrustManager[] trustManagers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckCerificateFingerprint(java.security.cert.X509Certificate certificate)protected booleancheckCertificateChainFingerprint(java.security.cert.X509Certificate[] chain)voidcheckClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)voidcheckServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)java.security.cert.X509Certificate[]getAcceptedIssuers()static byte[]hexDecode(java.lang.String hex)static byte[]sha256(byte[] data)
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException- Specified by:
checkClientTrustedin interfacejavax.net.ssl.X509TrustManager- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException- Specified by:
checkServerTrustedin interfacejavax.net.ssl.X509TrustManager- Throws:
java.security.cert.CertificateException
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfacejavax.net.ssl.X509TrustManager
-
checkCertificateChainFingerprint
protected boolean checkCertificateChainFingerprint(java.security.cert.X509Certificate[] chain)
-
checkCerificateFingerprint
protected boolean checkCerificateFingerprint(java.security.cert.X509Certificate certificate) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.cert.CertificateEncodingException
-
hexDecode
public static byte[] hexDecode(java.lang.String hex)
-
sha256
public static byte[] sha256(byte[] data) throws java.security.NoSuchAlgorithmException- Throws:
java.security.NoSuchAlgorithmException
-
-