feat: updates
This commit is contained in:
@@ -74,7 +74,8 @@ public abstract class CreateSignatureBase implements SignatureInterface {
|
|||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("Supported algorithm: " + cert.getPublicKey().getClass());
|
throw new RuntimeException("Supported algorithm: " + cert.getPublicKey().getClass());
|
||||||
}
|
}
|
||||||
final ContentSigner contentSigner = new JcaContentSignerBuilder(signatureAlgorithm).build(privateKey);
|
final ContentSigner contentSigner = new JcaContentSignerBuilder(signatureAlgorithm)
|
||||||
|
.build(privateKey);
|
||||||
gen.addSignerInfoGenerator(new JcaSignerInfoGeneratorBuilder(
|
gen.addSignerInfoGenerator(new JcaSignerInfoGeneratorBuilder(
|
||||||
new JcaDigestCalculatorProviderBuilder().build()).build(contentSigner, cert));
|
new JcaDigestCalculatorProviderBuilder().build()).build(contentSigner, cert));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user