Class KettleTrustManager
- java.lang.Object
-
- org.pentaho.di.trans.steps.ldapinput.store.KettleTrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
public class KettleTrustManager extends Object implements X509TrustManager
This is a wrapper around a standard X509TrustManager. It's just initialized in a specific way for Kettle purposes.
-
-
Constructor Summary
Constructors Constructor Description KettleTrustManager(KeyStore keyStore, String certFilename, String certPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] chain, String authType)
Pass method from x509TrustManager to this class...void
checkServerTrusted(X509Certificate[] chain, String authType)
Pass method from x509TrustManager to this class...X509Certificate[]
getAcceptedIssuers()
Pass method from x509TrustManager to this class...
-
-
-
Method Detail
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
Pass method from x509TrustManager to this class...- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
- Returns:
- an array of certificate authority certificates which are trusted for authenticating peers
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
Pass method from x509TrustManager to this class... Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for client SSL authentication based on the authentication type- Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
Pass method from x509TrustManager to this class... Given the partial or complete certificate chain provided by the peer, build a certificate path to a trusted root and return if it can be validated and is trusted for server SSL authentication based on the authentication type- Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
-