Package org.bouncycastle.cms
Class CMSPatchKit
java.lang.Object
org.bouncycastle.cms.CMSPatchKit
Toolkit methods for dealing with common errors in CMS
classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
CMSPatchKit
public CMSPatchKit()
-
-
Method Details
-
createNonDERSignerInfo
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
-