Android Certificate Create createX509CertificateFactory(String provider)

Here you can find the source of createX509CertificateFactory(String provider)

Description

create X Certificate Factory

License

LGPL

Declaration

static CertificateFactory createX509CertificateFactory(String provider)
            throws CertificateException, NoSuchProviderException 

Method Source Code

//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);
    }
}

Related

  1. getCertificate()
  2. generateX509CertificateFromSignature( final Signature signature)
  3. verifySignature(String algorithm, Certificate cert, byte[] signature, InputStream stream)