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 interface
CallbackTrustManager.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 void
checkClientTrusted(X509Certificate[] chain, String authType)
void
checkServerTrusted(X509Certificate[] chain, String authType)
X509Certificate[]
getAcceptedIssuers()
void
registerCertificate(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:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-
registerCertificate
public void registerCertificate(X509Certificate cert) throws InvalidNameException, KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException
-
-