All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.difi.certvalidator.util.BCHelper Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package no.difi.certvalidator.util;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import java.security.Provider;
import java.security.Security;

/**
 * @author erlend
 */
public class BCHelper {

    public static final Provider PROVIDER;

    static {
        if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null)
            Security.addProvider(new BouncyCastleProvider());

        PROVIDER = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy