Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.security.InvalidAlgorithmParameterException;

import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;

import java.security.cert.CertStore;
import java.security.cert.CertStoreParameters;

public class Main {
    static CertStore createCertStoreInstance(String type, CertStoreParameters params, String provider)
            throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException {
        if (provider == null) {
            return CertStore.getInstance(type, params);
        }

        return CertStore.getInstance(type, params, provider);
    }
}