no.digipost.api.config.SecurityInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-api-commons Show documentation
Show all versions of sdp-api-commons Show documentation
Felles kode for API-relatert funksjonalitet
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