Here you can find the source of createX509CertificateFactory(String provider)
static CertificateFactory createX509CertificateFactory(String provider) throws CertificateException, NoSuchProviderException
//package com.java2s; //License from project: LGPL import java.security.NoSuchProviderException; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; public class Main { static CertificateFactory createX509CertificateFactory(String provider) throws CertificateException, NoSuchProviderException { if (provider == null) { return CertificateFactory.getInstance("X.509"); }// ww w.j a va2s. c o m return CertificateFactory.getInstance("X.509", provider); } }