Class 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 Detail

      • KettleTrustManager

        public KettleTrustManager​(KeyStore keyStore,
                                  String certFilename,
                                  String certPassword)
                           throws org.pentaho.di.core.exception.KettleException
        Parameters:
        certStorePath -
        certPassword -
        Throws:
        org.pentaho.di.core.exception.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