
no.difi.asic.BCHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-asic Show documentation
Show all versions of commons-asic Show documentation
Generic implementation of ASiC-E archives in accordance with ETSI 102 918 v1.3.1.
The newest version!
package no.difi.asic;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.Provider;
import java.security.Security;
/**
* @author erlend
*/
class BCHelper {
private static final Provider PROVIDER;
static {
if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) != null) {
PROVIDER = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
} else {
PROVIDER = new BouncyCastleProvider();
Security.addProvider(PROVIDER);
}
}
public static Provider getProvider() {
return PROVIDER;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy