|
Bouncy Castle Cryptography 1.65 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cms.SignerInfoGeneratorBuilder
Builder for SignerInfo generator objects.
Constructor Summary | |
SignerInfoGeneratorBuilder(org.bouncycastle.operator.DigestCalculatorProvider digestProvider)
Base constructor. |
|
SignerInfoGeneratorBuilder(org.bouncycastle.operator.DigestCalculatorProvider digestProvider,
CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder)
Base constructor with a particular finder for signature algorithms. |
Method Summary | |
SignerInfoGenerator |
build(org.bouncycastle.operator.ContentSigner contentSigner,
byte[] subjectKeyIdentifier)
Build a generator with the passed in subjectKeyIdentifier as the signerIdentifier. |
SignerInfoGenerator |
build(org.bouncycastle.operator.ContentSigner contentSigner,
X509CertificateHolder certHolder)
Build a generator with the passed in certHolder issuer and serial number as the signerIdentifier. |
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(org.bouncycastle.operator.DigestCalculatorProvider digestProvider)
digestProvider
- a provider of digest calculators for the algorithms required in the signature and attribute calculations.public SignerInfoGeneratorBuilder(org.bouncycastle.operator.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 setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
signedGen
- a generator of signed attributes.public SignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
unsignedGen
- a generator for signed attributes.public SignerInfoGenerator build(org.bouncycastle.operator.ContentSigner contentSigner, X509CertificateHolder certHolder) throws org.bouncycastle.operator.OperatorCreationException
contentSigner
- operator for generating the final signature in the SignerInfo with.certHolder
- carrier for the X.509 certificate related to the contentSigner.public SignerInfoGenerator build(org.bouncycastle.operator.ContentSigner contentSigner, byte[] subjectKeyIdentifier) throws org.bouncycastle.operator.OperatorCreationException
contentSigner
- operator for generating the final signature in the SignerInfo with.subjectKeyIdentifier
- key identifier to identify the public key for verifying the signature.
|
Bouncy Castle Cryptography 1.65 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |