public abstract class PdfSignatureDetailsItext extends java.lang.Object implements PdfSignatureDetails
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this signature.
|
void |
getRevision(java.io.OutputStream pdfOutStream)
Write only the signed parts of this document signed by this signature and the signature itself
to the given output stream.
|
void |
getRevision(java.io.OutputStream pdfOutStream,
int offset)
Write only the signed parts of this document signed by this signature and the signature itself
to the given output stream starting at index offset.
|
void |
getRevision(java.lang.String filename)
Save only the signed parts of this document signed by this signature and the signature itself
to the given path and filename.
|
java.util.Calendar |
getSignatureDictionaryDate()
Returns the signing date, as set in the PDF signature dictionary (with dictionary key name
"M").
|
java.lang.String |
getSubfilter()
Returns the subfilter of this signature.
|
boolean |
isModified()
Check whether the document has been modified after the signature was applied by verifying that
the document ends after the last byte of the signed version.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSigningTime
public java.lang.String getName()
PdfSignatureDetails
getName
in interface PdfSignatureDetails
public java.lang.String getSubfilter()
PdfSignatureDetails
getSubfilter
in interface PdfSignatureDetails
public boolean isModified()
PdfSignatureDetails
isModified
in interface PdfSignatureDetails
public void getRevision(java.lang.String filename) throws java.io.IOException
PdfSignatureDetails
getRevision
in interface PdfSignatureDetails
filename
- The path and file name where to save the signed versionjava.io.IOException
- if the signed version can't be extracted or writtenpublic void getRevision(java.io.OutputStream pdfOutStream) throws java.io.IOException
PdfSignatureDetails
getRevision
in interface PdfSignatureDetails
pdfOutStream
- the output stream to write the signed version tojava.io.IOException
- if the signed version can't be extracted or writtenpublic void getRevision(java.io.OutputStream pdfOutStream, int offset) throws java.io.IOException
PdfSignatureDetails
getRevision
in interface PdfSignatureDetails
pdfOutStream
- the output stream to write the signed version tooffset
- offset where to start writing the signed versionjava.io.IOException
- if the signed version can't be extracted or writtenpublic java.util.Calendar getSignatureDictionaryDate()
PdfSignatureDetails
getSignatureDictionaryDate
in interface PdfSignatureDetails