com.fitbur.bouncycastle.operator.bc.BcRSAContentSignerBuilder Maven / Gradle / Ivy
package com.fitbur.bouncycastle.operator.bc;
import com.fitbur.bouncycastle.asn1.x509.AlgorithmIdentifier;
import com.fitbur.bouncycastle.crypto.Digest;
import com.fitbur.bouncycastle.crypto.Signer;
import com.fitbur.bouncycastle.crypto.signers.RSADigestSigner;
import com.fitbur.bouncycastle.operator.OperatorCreationException;
public class BcRSAContentSignerBuilder
extends BcContentSignerBuilder
{
public BcRSAContentSignerBuilder(AlgorithmIdentifier sigAlgId, AlgorithmIdentifier digAlgId)
{
super(sigAlgId, digAlgId);
}
protected Signer createSigner(AlgorithmIdentifier sigAlgId, AlgorithmIdentifier digAlgId)
throws OperatorCreationException
{
Digest dig = digestProvider.get(digAlgId);
return new RSADigestSigner(dig);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy