|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cms.SignerInfoGeneratorBuilder
Builder for SignerInfo generator objects.
| Constructor Summary | |
SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
Base constructor. |
|
SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider,
CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder)
Base constructor with a particular finder for signature algorithms. |
|
| Method Summary | |
SignerInfoGenerator |
build(ContentSigner contentSigner,
byte[] subjectKeyIdentifier)
Build a generator with the passed in subjectKeyIdentifier as the signerIdentifier. |
SignerInfoGenerator |
build(ContentSigner contentSigner,
X509CertificateHolder certHolder)
Build a generator with the passed in certHolder issuer and serial number as the signerIdentifier. |
SignerInfoGeneratorBuilder |
setContentDigest(org.bouncycastle.asn1.x509.AlgorithmIdentifier contentDigest)
Set the algorithm identifier for the contentDigest to be used for processing the data. |
SignerInfoGeneratorBuilder |
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. |
SignerInfoGeneratorBuilder |
setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
Provide a custom signed attribute generator. |
SignerInfoGeneratorBuilder |
setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
Provide a generator of unsigned attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
digestProvider - a provider of digest calculators for the algorithms required in the signature and attribute calculations.
public SignerInfoGeneratorBuilder(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.| Method Detail |
public SignerInfoGeneratorBuilder setDirectSignature(boolean hasNoSignedAttributes)
public SignerInfoGeneratorBuilder setContentDigest(org.bouncycastle.asn1.x509.AlgorithmIdentifier contentDigest)
public SignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
signedGen - a generator of signed attributes.
public SignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
unsignedGen - a generator for signed attributes.
public SignerInfoGenerator build(ContentSigner contentSigner,
X509CertificateHolder certHolder)
throws OperatorCreationException
contentSigner - operator for generating the final signature in the SignerInfo with.certHolder - carrier for the X.509 certificate related to the contentSigner.
OperatorCreationException - if the generator cannot be built.
public SignerInfoGenerator build(ContentSigner contentSigner,
byte[] subjectKeyIdentifier)
throws OperatorCreationException
contentSigner - operator for generating the final signature in the SignerInfo with.subjectKeyIdentifier - key identifier to identify the public key for verifying the signature.
OperatorCreationException - if the generator cannot be built.
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||