Class CallbackTrustManager
- java.lang.Object
-
- com.openindex.openestate.tool.utils.ssl.CallbackTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class CallbackTrustManager extends Object implements X509TrustManager
CallbackTrustManager.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCallbackTrustManager.Callback
-
Constructor Summary
Constructors Constructor Description CallbackTrustManager(CallbackTrustManager.Callback callback)CallbackTrustManager(KeyStore customTrustStore, char[] customTrustStorePassword, CallbackTrustManager.Callback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()voidregisterCertificate(X509Certificate cert)
-
-
-
Constructor Detail
-
CallbackTrustManager
public CallbackTrustManager(CallbackTrustManager.Callback callback)
-
CallbackTrustManager
public CallbackTrustManager(KeyStore customTrustStore, char[] customTrustStorePassword, CallbackTrustManager.Callback callback)
-
-
Method Detail
-
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
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
registerCertificate
public void registerCertificate(X509Certificate cert) throws InvalidNameException, KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException
-
-