Package eu.europa.esig.dss.pades
Class PAdESUtils
java.lang.Object
eu.europa.esig.dss.pades.PAdESUtils
public final class PAdESUtils extends Object
-
Constructor Summary
Constructors Constructor Description PAdESUtils() -
Method Summary
Modifier and Type Method Description static InMemoryDocumentgetOriginalPDF(PAdESSignature padesSignature)Returns the original signed content for thepadesSignaturestatic InMemoryDocumentgetOriginalPDF(PdfCMSRevision pdfRevision)Returns the original signed content for thepdfRevisionstatic RevocationInfoArchivalgetRevocationInfoArchivals(org.bouncycastle.asn1.ASN1Encodable encodable)ReturnsRevocationInfoArchivalfrom the given encodablestatic byte[]getSignedContent(DSSDocument dssDocument, ByteRange byteRange)Returns a signed content according to the provided byteRange
-
Constructor Details
-
PAdESUtils
public PAdESUtils()
-
-
Method Details
-
getOriginalPDF
Returns the original signed content for thepadesSignature- Parameters:
padesSignature-PAdESSignature- Returns:
InMemoryDocument
-
getOriginalPDF
Returns the original signed content for thepdfRevision- Parameters:
pdfRevision-PdfRevision- Returns:
InMemoryDocument
-
getSignedContent
public static byte[] getSignedContent(DSSDocument dssDocument, ByteRange byteRange) throws IOExceptionReturns a signed content according to the provided byteRange- Parameters:
dssDocument-DSSDocumentto extract the content frombyteRange-ByteRangeindicating which content range should be extracted- Returns:
- extracted content
- Throws:
IOException- in case if an exception occurs
-
getRevocationInfoArchivals
public static RevocationInfoArchival getRevocationInfoArchivals(org.bouncycastle.asn1.ASN1Encodable encodable)ReturnsRevocationInfoArchivalfrom the given encodable- Parameters:
encodable- the encoded data to be parsed- Returns:
- an instance of RevocationValues or null if the parsing failled
-