public class JcaSignerInfoGeneratorBuilder
extends java.lang.Object
Constructor | Description |
---|---|
JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider) |
Base constructor.
|
JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider,
CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder) |
Base constructor with a particular finder for signature algorithms.
|
Modifier and Type | Method | Description |
---|---|---|
SignerInfoGenerator |
build(ContentSigner contentSigner,
byte[] keyIdentifier) |
|
SignerInfoGenerator |
build(ContentSigner contentSigner,
java.security.cert.X509Certificate certificate) |
|
SignerInfoGenerator |
build(ContentSigner contentSigner,
X509CertificateHolder certHolder) |
|
JcaSignerInfoGeneratorBuilder |
setDirectSignature(boolean hasNoSignedAttributes) |
If the passed in flag is true, the signer signature will be based on the data, not
a collection of signed attributes, and no signed attributes will be included.
|
JcaSignerInfoGeneratorBuilder |
setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen) |
|
JcaSignerInfoGeneratorBuilder |
setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen) |
public JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
digestProvider
- a provider of digest calculators for the algorithms required in the signature and attribute calculations.public JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider, CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder)
digestProvider
- a provider of digest calculators for the algorithms required in the signature and attribute calculations.sigEncAlgFinder
- finder for algorithm IDs to store for the signature encryption/signature algorithm field.public JcaSignerInfoGeneratorBuilder setDirectSignature(boolean hasNoSignedAttributes)
public JcaSignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
public JcaSignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
public SignerInfoGenerator build(ContentSigner contentSigner, X509CertificateHolder certHolder) throws OperatorCreationException
OperatorCreationException
public SignerInfoGenerator build(ContentSigner contentSigner, byte[] keyIdentifier) throws OperatorCreationException
OperatorCreationException
public SignerInfoGenerator build(ContentSigner contentSigner, java.security.cert.X509Certificate certificate) throws OperatorCreationException, java.security.cert.CertificateEncodingException
OperatorCreationException
java.security.cert.CertificateEncodingException