public class LegalContentAttestation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LegalContentAttestation.ContentType
Possible PDF content types that may effect the presentation of the document's content.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
attestation
Identifier for the attestation string entry.
|
static java.lang.String |
optionalContent
Identifier for the optional content entry.
|
Constructor and Description |
---|
LegalContentAttestation()
Create a new empty legal content attestation.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(LegalContentAttestation.ContentType content,
int occurrences)
Add entry for the given content type
|
java.lang.String |
getAttestationString()
The attestation text contained in this legal content attestation.
|
static java.lang.String |
getContentName(LegalContentAttestation.ContentType content)
Get the identifier for the entry of this content type
|
static LegalContentAttestation.ContentType |
getContentType(java.lang.String content)
Get the corresponding content type for the given identifier.
|
java.util.HashMap<LegalContentAttestation.ContentType,java.lang.Integer> |
getEntries() |
boolean |
getOptionalContentFlag() |
void |
setAttestationString(java.lang.String attestation)
Set the attestation text, giving some more information about the document's integrity.
|
void |
setOptionalContentFlag(boolean included)
Set whether document contains object of PDF type "optional content"
|
public static final java.lang.String optionalContent
public static final java.lang.String attestation
public LegalContentAttestation()
public void addEntry(LegalContentAttestation.ContentType content, int occurrences)
content
- the content type contained in the documentoccurrences
- number, how often content of this type occurs in the documentpublic void setAttestationString(java.lang.String attestation)
attestation
- the attestation textpublic java.lang.String getAttestationString()
public void setOptionalContentFlag(boolean included)
included
- set to true, if such objects are containedpublic boolean getOptionalContentFlag()
public java.util.HashMap<LegalContentAttestation.ContentType,java.lang.Integer> getEntries()
public static java.lang.String getContentName(LegalContentAttestation.ContentType content)
content
- the content typepublic static LegalContentAttestation.ContentType getContentType(java.lang.String content) throws PdfSignatureException
content
- Identifier used for this content type.PdfSignatureException
- If the given identifier is not defined by the PDF specification