org.pentaho.di.trans.steps.ldapinput.store
Class KettleTrustManager

java.lang.Object
  extended by 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
KettleTrustManager(KeyStore keyStore, String certFilename, String certPassword)
           
 
Method Summary
 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...
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KettleTrustManager

public KettleTrustManager(KeyStore keyStore,
                          String certFilename,
                          String certPassword)
                   throws KettleException
Parameters:
certStorePath -
certPassword -
Throws:
KettleException
Method Detail

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Pass method from x509TrustManager to this class...

Specified by:
getAcceptedIssuers in interface X509TrustManager
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 interface X509TrustManager
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 interface X509TrustManager
Throws:
CertificateException