Org.BouncyCastle.Cms.SignerInfoGeneratorBuilder
Builds SignerInfoGenerator instances for CMS SignedData creation.
public SignerInfoGeneratorBuilder()
Initialises a builder with default signed-attribute generation.
Builds a generator that identifies the signer by X.509 issuer and serial number from
certificate.
Builds a generator that identifies the signer by subject key identifier. The identifier should follow RFC
5280 section 4.2.1.2 where possible.
When hasNoSignedAttributes is true, the signature is computed over the content only and
no signed or unsigned attributes are included.
public SignerInfoGeneratorBuilder WithSignedAttributeGenerator(CmsAttributeTableGenerator signedGen)
Sets a custom generator for signed attributes.
public SignerInfoGeneratorBuilder WithUnsignedAttributeGenerator(CmsAttributeTableGenerator unsignedGen)
Sets a generator for unsigned attributes.