Package es.gob.afirma.signature.pades
Class PDFDocumentTimestampDictionary
- java.lang.Object
-
- es.gob.afirma.signature.pades.PDFDocumentTimestampDictionary
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PDFDocumentTimestampDictionary>
public class PDFDocumentTimestampDictionary extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PDFDocumentTimestampDictionary>
Class that contains information related to a Document Time-stamp dictionary of a PDF document.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 13/11/2014.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PDFDocumentTimestampDictionary(com.lowagie.text.pdf.PdfDictionary dictionaryParam, java.lang.String nameParam, java.lang.Integer revisionParam, org.bouncycastle.tsp.TimeStampToken timestampParam, java.security.cert.X509Certificate certificateParam)Constructor method for the class PDFDocumentTimestampDictionary.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PDFDocumentTimestampDictionary o)java.security.cert.X509CertificategetCertificate()Gets the value of the attributecertificate.com.lowagie.text.pdf.PdfDictionarygetDictionary()Gets the value of the attributedictionary.java.lang.StringgetName()Gets the value of the attributename.java.lang.IntegergetRevision()Gets the value of the attributerevision.org.bouncycastle.tsp.TimeStampTokengetTimestamp()Gets the value of the attributetimestamp.voidsetCertificate(java.security.cert.X509Certificate certificateParam)Sets the value of the attributecertificate.voidsetDictionary(com.lowagie.text.pdf.PdfDictionary dictionaryParam)Sets the value of the attributedictionary.voidsetName(java.lang.String nameParam)Sets the value of the attributename.voidsetRevision(java.lang.Integer revisionParam)Sets the value of the attributerevision.voidsetTimestamp(org.bouncycastle.tsp.TimeStampToken timestampParam)Sets the value of the attributetimestamp.
-
-
-
Constructor Detail
-
PDFDocumentTimestampDictionary
public PDFDocumentTimestampDictionary(com.lowagie.text.pdf.PdfDictionary dictionaryParam, java.lang.String nameParam, java.lang.Integer revisionParam, org.bouncycastle.tsp.TimeStampToken timestampParam, java.security.cert.X509Certificate certificateParam)Constructor method for the class PDFDocumentTimestampDictionary.java.- Parameters:
dictionaryParam- Parameter that represents the signature dictionary.nameParam- Parameter that represents the name of the signature dictionary.revisionParam- Parameter that represents the number of the revision on the PDF document when the Time-stamp dictionary was added.timestampParam- Parameter that represents the time-stamp contained inside of the Document Time-stamp dictionary.certificateParam- Parameter that represents the signing certificate of the time-stamp contained inside of the Document Time-stamp dictionary.
-
-
Method Detail
-
getDictionary
public final com.lowagie.text.pdf.PdfDictionary getDictionary()
Gets the value of the attributedictionary.- Returns:
- the value of the attribute
dictionary.
-
setDictionary
public final void setDictionary(com.lowagie.text.pdf.PdfDictionary dictionaryParam)
Sets the value of the attributedictionary.- Parameters:
dictionaryParam- The value for the attributedictionary.
-
getName
public final java.lang.String getName()
Gets the value of the attributename.- Returns:
- the value of the attribute
name.
-
setName
public final void setName(java.lang.String nameParam)
Sets the value of the attributename.- Parameters:
nameParam- The value for the attributename.
-
getRevision
public final java.lang.Integer getRevision()
Gets the value of the attributerevision.- Returns:
- the value of the attribute
revision.
-
setRevision
public final void setRevision(java.lang.Integer revisionParam)
Sets the value of the attributerevision.- Parameters:
revisionParam- The value for the attributerevision.
-
compareTo
public final int compareTo(PDFDocumentTimestampDictionary o)
- Specified by:
compareToin interfacejava.lang.Comparable<PDFDocumentTimestampDictionary>- See Also:
Comparable.compareTo(java.lang.Object)
-
getTimestamp
public final org.bouncycastle.tsp.TimeStampToken getTimestamp()
Gets the value of the attributetimestamp.- Returns:
- the value of the attribute
timestamp.
-
setTimestamp
public final void setTimestamp(org.bouncycastle.tsp.TimeStampToken timestampParam)
Sets the value of the attributetimestamp.- Parameters:
timestampParam- The value for the attributetimestamp.
-
getCertificate
public final java.security.cert.X509Certificate getCertificate()
Gets the value of the attributecertificate.- Returns:
- the value of the attribute
certificate.
-
setCertificate
public final void setCertificate(java.security.cert.X509Certificate certificateParam)
Sets the value of the attributecertificate.- Parameters:
certificateParam- The value for the attributecertificate.
-
-