public class

JcaSignerInfoGeneratorBuilder

extends Object
java.lang.Object
   ↳ org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder

Summary

Public Constructors
JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
Public Methods
SignerInfoGenerator build(ContentSigner contentSigner, byte[] keyIdentifier)
SignerInfoGenerator build(ContentSigner contentSigner, 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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JcaSignerInfoGeneratorBuilder (DigestCalculatorProvider digestProvider)

Public Methods

public SignerInfoGenerator build (ContentSigner contentSigner, byte[] keyIdentifier)

public SignerInfoGenerator build (ContentSigner contentSigner, X509CertificateHolder certHolder)

public 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.

Returns
  • the builder object

public JcaSignerInfoGeneratorBuilder setSignedAttributeGenerator (CMSAttributeTableGenerator signedGen)

public JcaSignerInfoGeneratorBuilder setUnsignedAttributeGenerator (CMSAttributeTableGenerator unsignedGen)