Class CMSPatchKit


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

      Constructors 
      Constructor Description
      CMSPatchKit()  
    • Constructor Detail

      • CMSPatchKit

        public CMSPatchKit()
    • Method Detail

      • 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