Package org.bouncycastle.cms
Class CMSPatchKit
- java.lang.Object
 - 
- org.bouncycastle.cms.CMSPatchKit
 
 
- 
public class CMSPatchKit extends java.lang.ObjectToolkit methods for dealing with common errors in CMS classes. 
- 
- 
Constructor Summary
Constructors Constructor Description CMSPatchKit() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SignerInformationcreateNonDERSignerInfo(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 SignerInformationcreateWithSignatureAlgorithm(SignerInformation original, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm)Create a SignerInformation based on original has it's signatureAlgorithm replaced with the passed in AlgorithmIdentifier. 
 - 
 
- 
- 
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
 
 - 
 
 -