modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CertReader.java [162:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static CertificateFactory getCertificateFactory(String providerName)
            throws CertificateException, NoSuchProviderException {
        if (certFactory == null) {
            try {
                if (providerName == null) {
                    certFactory = CertificateFactory.getInstance("X.509");
                } else {
                    certFactory = CertificateFactory.getInstance("X.509",
                            providerName);
                }
            } catch (CertificateException e) {
                throw new CertificateException(
                        "This type of certificate is not "
                                + "available from the provider. ", e);
            } catch (NoSuchProviderException e) {
                throw (NoSuchProviderException) new NoSuchProviderException(
                        "The provider " + providerName
                                + " is not found in the environment.")
                        .initCause(e);
            }
        }
        return certFactory;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/jdktools/src/main/java/org/apache/harmony/tools/keytool/CertReader.java [162:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static CertificateFactory getCertificateFactory(String providerName)
            throws CertificateException, NoSuchProviderException {
        if (certFactory == null) {
            try {
                if (providerName == null) {
                    certFactory = CertificateFactory.getInstance("X.509");
                } else {
                    certFactory = CertificateFactory.getInstance("X.509",
                            providerName);
                }
            } catch (CertificateException e) {
                throw new CertificateException(
                        "This type of certificate is not "
                                + "available from the provider. ", e);
            } catch (NoSuchProviderException e) {
                throw (NoSuchProviderException) new NoSuchProviderException(
                        "The provider " + providerName
                                + " is not found in the environment.")
                        .initCause(e);
            }
        }
        return certFactory;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



