Class ObjectEvaluation.DocMDP
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.pdf.ObjectEvaluation.DocMDP
- All Implemented Interfaces:
ObjectEvaluation.SelectiveComputation
- Direct Known Subclasses:
ObjectEvaluation.FallbackSelectiveComputation
- Enclosing class:
- ObjectEvaluation
public static class ObjectEvaluation.DocMDP extends Object implements ObjectEvaluation.SelectiveComputation
P number (Optional) The access permissions granted for this document. Valid values are:
1 No changes to the document are permitted; any change to the document invalidates the signature.
2 Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.
3 Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature
-
Field Summary
Fields Modifier and Type Field Description int
p
int
signatureIndex
float
version
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
allows(ObjectEvaluation.Change change)
float
getPDFVersion()
int
getSignatureIndex()
boolean
selectiveness(ObjectEvaluation.Selectiveness selectiveness)
-
Field Details
-
version
public final float version -
p
public final int p -
signatureIndex
public final int signatureIndex
-
-
Constructor Details
-
DocMDP
public DocMDP(org.apache.pdfbox.cos.COSBase base, int signatureIndex, org.apache.pdfbox.pdmodel.PDDocument document) throws PdfException- Throws:
PdfException
-
DocMDP
public DocMDP(int p, int signatureIndex, float version)- Parameters:
p
- permissões de acessosignatureIndex
- índice da assinaturaversion
- versão do dicionário
-
-
Method Details
-
getSignatureIndex
public int getSignatureIndex() -
getPDFVersion
public float getPDFVersion()- Specified by:
getPDFVersion
in interfaceObjectEvaluation.SelectiveComputation
-
allows
- Specified by:
allows
in interfaceObjectEvaluation.SelectiveComputation
-
selectiveness
- Specified by:
selectiveness
in interfaceObjectEvaluation.SelectiveComputation
-