Bouncy Castle Cryptography Library 1.79

org.bouncycastle.cms
Class CMSPatchKit

java.lang.Object
  |
  +--org.bouncycastle.cms.CMSPatchKit

public class CMSPatchKit
extends java.lang.Object

Toolkit methods for dealing with common errors in CMS classes.


Constructor Summary
CMSPatchKit()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Bouncy Castle Cryptography Library 1.79