Class CMSSignedDataGeneratorParameters


  • public class CMSSignedDataGeneratorParameters
    extends Object
    Parameters for the generation of SignedData.
    Since:
    6.0M1
    Version:
    $Id: 55687f11d5ea38819ab1d73abf21d9f1ecbe5832 $
    • Constructor Detail

      • CMSSignedDataGeneratorParameters

        public CMSSignedDataGeneratorParameters()
    • Method Detail

      • addSignature

        public CMSSignedDataGeneratorParameters addSignature​(CMSSignerInfo signer)
        Add existing signature.
        Parameters:
        signer - a signer info containing an already calculated signature for the targeted data.
        Returns:
        this object for call chaining.
      • addSignatures

        public CMSSignedDataGeneratorParameters addSignatures​(Collection<CMSSignerInfo> signers)
        Add a collection of existing signatures.
        Parameters:
        signers - a collection of signer info containing an already calculated signature for the targeted data.
        Returns:
        this object for call chaining.
      • getCertificates

        public Collection<CertifiedPublicKey> getCertificates()
        Returns:
        the aggregated collection of certificates to be joined with the signed data.
      • getSignatures

        public Collection<CMSSignerInfo> getSignatures()
        Returns:
        the aggregated collection of signer info containing an already calculated signature.
      • getSigners

        public Collection<CertifyingSigner> getSigners()
        Returns:
        the aggregated collection of certifying signer to be used to sign the content data.