use of org.bouncycastle.operator.DefaultAlgorithmNameFinder in project candlepin by candlepin.
the class X509CRLStreamWriter method createContentSigner.
protected ContentSigner createContentSigner(AlgorithmIdentifier signingAlg, PrivateKey key) throws OperatorCreationException {
String algorithm = new DefaultAlgorithmNameFinder().getAlgorithmName(signingAlg);
JcaContentSignerBuilder builder = new JcaContentSignerBuilder(algorithm).setProvider(BC_PROVIDER);
return builder.build(key);
}
Aggregations