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 InMemoryDocument
getOriginalPDF(PAdESSignature padesSignature)
Returns the original signed content for thepadesSignature
static InMemoryDocument
getOriginalPDF(PdfCMSRevision pdfRevision)
Returns the original signed content for thepdfRevision
static RevocationInfoArchival
getRevocationInfoArchivals(org.bouncycastle.asn1.ASN1Encodable encodable)
ReturnsRevocationInfoArchival
from 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
-DSSDocument
to extract the content frombyteRange
-ByteRange
indicating 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)ReturnsRevocationInfoArchival
from the given encodable- Parameters:
encodable
- the encoded data to be parsed- Returns:
- an instance of RevocationValues or null if the parsing failled
-