| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmIdentifier | |
| private final DigestAlgorithmIdentifierFinder | |
| private DigestCalculatorProvider | |
| private boolean | |
| private CMSSignatureEncryptionAlgorithmFinder | |
| private CMSAttributeTableGenerator | |
| private CMSAttributeTableGenerator |
| Access | Constructor and Description |
|---|---|
| public | SignerInfoGeneratorBuilder(DigestCalculatorProvider
a provider of digest calculators for the algorithms required in the signature and attribute calculations. digestProvider)Base constructor. |
| public | SignerInfoGeneratorBuilder(DigestCalculatorProvider
a provider of digest calculators for the algorithms required in the signature and attribute calculations. digestProvider, CMSSignatureEncryptionAlgorithmFinder finder for algorithm IDs to store for the signature encryption/signature algorithm field. sigEncAlgFinder)Base constructor with a particular finder for signature algorithms. |
| Modifier and Type | Method and Description |
|---|---|
| public SignerInfoGenerator | Returns: a SignerInfoGeneratoroperator for generating the final signature in the SignerInfo with. contentSigner, X509CertificateHolder carrier for the X.509 certificate related to the contentSigner. certHolder)Build a generator with the passed in certHolder issuer and serial number as the signerIdentifier. |
| public SignerInfoGenerator | Returns: a SignerInfoGeneratoroperator for generating the final signature in the SignerInfo with. contentSigner, byte[] key identifier to identify the public key for verifying the signature. subjectKeyIdentifier)Build a generator with the passed in subjectKeyIdentifier as the signerIdentifier. |
| private SignerInfoGenerator | |
| public SignerInfoGeneratorBuilder | Returns: the builder objectSet the algorithm identifier for the contentDigest to be used for processing the data. |
| public SignerInfoGeneratorBuilder | Returns: the builder objectIf 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. |
| public SignerInfoGeneratorBuilder | Returns: the builder objecta generator of signed attributes. signedGen)Provide a custom signed attribute generator. |
| public SignerInfoGeneratorBuilder | Returns: the builder objecta generator for signed attributes. unsignedGen)Provide a generator of unsigned attributes. |
| contentDigest | back to summary |
|---|---|
| private AlgorithmIdentifier contentDigest | |
| digAlgFinder | back to summary |
|---|---|
| private final DigestAlgorithmIdentifierFinder digAlgFinder | |
| digestProvider | back to summary |
|---|---|
| private DigestCalculatorProvider digestProvider | |
| directSignature | back to summary |
|---|---|
| private boolean directSignature | |
| sigEncAlgFinder | back to summary |
|---|---|
| private CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder | |
| signedGen | back to summary |
|---|---|
| private CMSAttributeTableGenerator signedGen | |
| unsignedGen | back to summary |
|---|---|
| private CMSAttributeTableGenerator unsignedGen | |
| SignerInfoGeneratorBuilder | back to summary |
|---|---|
| public SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider) Base constructor.
| |
| SignerInfoGeneratorBuilder | back to summary |
|---|---|
| public SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider, CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder) Base constructor with a particular finder for signature algorithms.
| |
| build | back to summary |
|---|---|
| public SignerInfoGenerator build(ContentSigner contentSigner, X509CertificateHolder certHolder) throws OperatorCreationException Build a generator with the passed in certHolder issuer and serial number as the signerIdentifier.
| |
| build | back to summary |
|---|---|
| public SignerInfoGenerator build(ContentSigner contentSigner, byte[] subjectKeyIdentifier) throws OperatorCreationException Build a generator with the passed in subjectKeyIdentifier as the signerIdentifier. If used you should try to follow the calculation described in RFC 5280 section 4.2.1.2.
| |
| createGenerator | back to summary |
|---|---|
| private SignerInfoGenerator createGenerator(ContentSigner contentSigner, SignerIdentifier sigId) throws OperatorCreationException | |
| setContentDigest | back to summary |
|---|---|
| public SignerInfoGeneratorBuilder setContentDigest(AlgorithmIdentifier contentDigest) Set the algorithm identifier for the contentDigest to be used for processing the data.
| |
| setDirectSignature | back to summary |
|---|---|
| public 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.
| |
| setSignedAttributeGenerator | back to summary |
|---|---|
| public SignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen) Provide a custom signed attribute generator.
| |
| setUnsignedAttributeGenerator | back to summary |
|---|---|
| public SignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen) Provide a generator of unsigned attributes.
| |