
com.wxmlabs.aurora.BCProviderHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aurora-core Show documentation
Show all versions of aurora-core Show documentation
Aurora Cryptography - a simple digital signature signer
The newest version!
package com.wxmlabs.aurora;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.NoSuchAlgorithmException;
import java.security.Security;
import java.security.Signature;
class BCProviderHelper {
private static final BouncyCastleProvider PROVIDER = new BouncyCastleProvider();
static {
Security.addProvider(PROVIDER);
}
static BouncyCastleProvider getProvider() {
return PROVIDER;
}
static Signature getSignatureInstance(String algorithm) throws NoSuchAlgorithmException {
return Signature.getInstance(algorithm, PROVIDER);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy