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

no.digipost.api.config.SecurityInitializer Maven / Gradle / Ivy

The newest version!
package no.digipost.api.config;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import java.security.Security;

public class SecurityInitializer {

    public static void ensureBC() {
        if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
            Security.addProvider(new BouncyCastleProvider());
        }
    }

    public static void ensureOcspEnabled() {
        Security.setProperty("ocsp.enable", "true");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy