Code example for CertPathTrustManagerParameters

                tms = tmf.getTrustManagers();
            } else { 
                TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm);
                CertPathParameters params = getParameters(algorithm, crlf, trustStore);
                ManagerFactoryParameters mfp = new CertPathTrustManagerParameters(params);
                tms = tmf.getTrustManagers();
        return tms;
     * Return the initialization parameters for the TrustManager. 
     * Currently, only the default <code>PKIX</code> is supported. 
     * @param algorithm The algorithm to get parameters for. 
     * @param crlf The path to the CRL file. 
Connect your IDE to all the code out there  Get Codota for Java