Class CMSPatchKit

java.lang.Object
org.bouncycastle.cms.CMSPatchKit

public class CMSPatchKit extends Object
Toolkit methods for dealing with common errors in CMS classes.
  • Constructor Details

    • CMSPatchKit

      public CMSPatchKit()
  • Method Details

    • createNonDERSignerInfo

      public static SignerInformation createNonDERSignerInfo(SignerInformation original)
      Create a SignerInformation based on original which uses definite-length rather than DER encoding for verifying the signature on the signed attributes.
      Parameters:
      original - the source SignerInformation
    • createWithSignatureAlgorithm

      public static SignerInformation createWithSignatureAlgorithm(SignerInformation original, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm)
      Create a SignerInformation based on original has it's signatureAlgorithm replaced with the passed in AlgorithmIdentifier.
      Parameters:
      original - the source SignerInformation