Package eu.europa.esig.dss.diagnostic
Class AbstractSignatureWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.AbstractTokenProxy
eu.europa.esig.dss.diagnostic.AbstractSignatureWrapper
- All Implemented Interfaces:
TokenProxy
- Direct Known Subclasses:
SignatureWrapper
,TimestampWrapper
Contains common code for signature tokens (signature or timestamps).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if any visual modifications detected in the PDFboolean
This method checks whether object modifications are present after the current PDF revisionsReturns the PDF signature dictionary /ContactInfo valueReturns aCertificationPermission
value of a /DocMDP dictionary, when presentReturns a /FieldMDP dictionary content, when presentReturns the PDF signature dictionary /Filter valueReturns the first signature field nameReturns the PDF signature dictionary /Location valueThis method returns a list of field names modified after the current signature's revisionReturns a list of changes occurred in a PDF after the current signature's revision associated with annotation(s) modificationReturns a list of PDF annotation overlap concerned pagesReturns a list of changes occurred in a PDF after the current signature's revision associated with a signature/document extensionReturns a list of pages missing/added to the final revision in a comparison with a signed oneabstract PDFRevisionWrapper
Returns a PAdES-specific PDF Revision info NOTE: applicable only for PAdESReturns a list of changes occurred in a PDF after the current signature's revision associated with a signature creation, form fillingReturns a list of undefined changes occurred in a PDF after the current signature's revisionReturns a list of PDF visual difference concerned pagesReturns the PDF signature dictionary /Reason valueReturns a /SigFieldLock dictionary, when presentReturns the PDF signature dictionary /ByteRange valueReturns the PDF signature dictionary /Type valueReturns a list of signature field names, where the signature is referenced fromReturns the signer's nameReturns the PDF signature dictionary /SubFilter valueboolean
This method returns whether the PDF signature dictionary is consistent across PDF revisions.boolean
This method returns whether the PDF signature dictionary /ByteRange is found and validMethods inherited from class eu.europa.esig.dss.diagnostic.AbstractTokenProxy
equals, foundCertificates, foundRevocations, getBinaries, getCertificateChain, getCurrentBasicSignature, getCurrentCertificateChain, getCurrentSigningCertificate, getDigestAlgorithm, getDigestMatchers, getEncryptionAlgorithm, getKeyLengthUsedToSignThisToken, getMaskGenerationFunction, getSignatureAlgorithm, getSigningCertificate, getSigningCertificatePublicKey, getSigningCertificateReference, getSigningCertificateReferences, hashCode, isCertificateChainFromTrustedStore, isSignatureIntact, isSignatureValid, isSigningCertificateReferencePresent, isSigningCertificateReferenceUnique, isTrustedChain, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.diagnostic.TokenProxy
getId
-
Constructor Details
-
AbstractSignatureWrapper
protected AbstractSignatureWrapper()Default constructor
-
-
Method Details
-
getPDFRevision
Returns a PAdES-specific PDF Revision info NOTE: applicable only for PAdES- Returns:
PDFRevisionWrapper
-
arePdfModificationsDetected
public boolean arePdfModificationsDetected()Checks if any visual modifications detected in the PDF- Returns:
- TRUE if modifications detected in a PDF, FALSE otherwise
-
getPdfAnnotationsOverlapConcernedPages
Returns a list of PDF annotation overlap concerned pages- Returns:
- a list of page numbers
-
getPdfVisualDifferenceConcernedPages
Returns a list of PDF visual difference concerned pages- Returns:
- a list of page numbers
-
getPdfPageDifferenceConcernedPages
Returns a list of pages missing/added to the final revision in a comparison with a signed one- Returns:
- a list of page numbers
-
arePdfObjectModificationsDetected
public boolean arePdfObjectModificationsDetected()This method checks whether object modifications are present after the current PDF revisions- Returns:
- TRUE if PDF has been modified, FALSE otherwise
-
getPdfExtensionChanges
Returns a list of changes occurred in a PDF after the current signature's revision associated with a signature/document extension- Returns:
- a list of
XmlObjectModification
s
-
getPdfSignatureOrFormFillChanges
Returns a list of changes occurred in a PDF after the current signature's revision associated with a signature creation, form filling- Returns:
- a list of
XmlObjectModification
s
-
getPdfAnnotationChanges
Returns a list of changes occurred in a PDF after the current signature's revision associated with annotation(s) modification- Returns:
- a list of
XmlObjectModification
s
-
getPdfUndefinedChanges
Returns a list of undefined changes occurred in a PDF after the current signature's revision- Returns:
- a list of
XmlObjectModification
s
-
getModifiedFieldNames
-
getFirstFieldName
-
getSignatureFieldNames
-
getSignerName
-
getSignatureDictionaryType
-
getFilter
-
getSubFilter
-
getContactInfo
-
getLocation
-
getReason
-
getSignatureByteRange
Returns the PDF signature dictionary /ByteRange value- Returns:
- byte range
-
isSignatureByteRangeValid
public boolean isSignatureByteRangeValid()This method returns whether the PDF signature dictionary /ByteRange is found and valid- Returns:
- TRUE if the /ByteRange is valid, FALSE otherwise
-
isPdfSignatureDictionaryConsistent
public boolean isPdfSignatureDictionaryConsistent()This method returns whether the PDF signature dictionary is consistent across PDF revisions.- Returns:
- TRUE if the signature dictionary is consistent, FALSE otherwise
-
getDocMDPPermissions
Returns aCertificationPermission
value of a /DocMDP dictionary, when present- Returns:
CertificationPermission
-
getFieldMDP
Returns a /FieldMDP dictionary content, when present- Returns:
XmlPDFLockDictionary
-
getSigFieldLock
Returns a /SigFieldLock dictionary, when present- Returns:
XmlPDFLockDictionary
-