Class CMSVerifyUtils
java.lang.Object
se.swedenconnect.sigval.pdf.utils.CMSVerifyUtils
Utility methods for CMS verification
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckAlgoritmConsistency(ExtendedPdfSigValResult sigResult) static voidgetCMSAlgoritmProtectionData(org.bouncycastle.asn1.cms.Attribute cmsAlgoProtAttr, ExtendedPdfSigValResult sigResult) static org.bouncycastle.cms.CMSSignedDataParsergetCMSSignedDataParser(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sig, byte[] signedPdfDoc) Obtains aCMSSignedDataParser*
-
Constructor Details
-
CMSVerifyUtils
public CMSVerifyUtils()
-
-
Method Details
-
getCMSSignedDataParser
public static org.bouncycastle.cms.CMSSignedDataParser getCMSSignedDataParser(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sig, byte[] signedPdfDoc) throws org.bouncycastle.cms.CMSException, IOException Obtains aCMSSignedDataParser*- Parameters:
sig- ThePDSignatureof the signaturesignedPdfDoc- the bytes of the complete PDF document holding this signature- Returns:
- CMSSignedDataParser
- Throws:
org.bouncycastle.cms.CMSException- on errorIOException- on error
-
getCMSAlgoritmProtectionData
public static void getCMSAlgoritmProtectionData(org.bouncycastle.asn1.cms.Attribute cmsAlgoProtAttr, ExtendedPdfSigValResult sigResult) -
checkAlgoritmConsistency
-