Package es.gob.afirma.utils
Class XAdESTimeStampType
- java.lang.Object
-
- es.gob.afirma.utils.XAdESTimeStampType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<XAdESTimeStampType>
public class XAdESTimeStampType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<XAdESTimeStampType>
Class that contains information related to a time-stamp contained inside of a XML signature.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 14/03/2017.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XAdESTimeStampType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(XAdESTimeStampType o)org.bouncycastle.tsp.TimeStampTokengetAsn1Timestamp()Gets the value of the attributeasn1Timestamp.java.lang.StringgetCanonicalizationAlgorithm()Gets the value of the attributecanonicalizationAlgorithm.java.lang.StringgetId()Gets the value of the attributeid.java.util.DategetTimestampGenerationDate()Gets the value of the attributetimestampGenerationDate.java.security.cert.X509CertificategetTstCertificate()Gets the value of the attributetstCertificate.org.w3c.dom.ElementgetXmlTimestamp()Gets the value of the attributexmlTimestamp.voidsetAsn1Timestamp(org.bouncycastle.tsp.TimeStampToken asn1TimestampParam)Sets the value of the attributeasn1Timestamp.voidsetCanonicalizationAlgorithm(java.lang.String canonicalizationAlgorithmParam)Sets the value of the attributecanonicalizationAlgorithm.voidsetId(java.lang.String idParam)Sets the value of the attributeid.voidsetTimestampGenerationDate(java.util.Date timestampGenerationDateParam)Sets the value of the attributetimestampGenerationDate.voidsetTstCertificate(java.security.cert.X509Certificate tstCertificateParam)Sets the value of the attributetstCertificate.voidsetXmlTimestamp(org.w3c.dom.Element xmlTimestampParam)Sets the value of the attributexmlTimestamp.
-
-
-
Method Detail
-
getId
public final java.lang.String getId()
Gets the value of the attributeid.- Returns:
- the value of the attribute
id.
-
setId
public final void setId(java.lang.String idParam)
Sets the value of the attributeid.- Parameters:
idParam- The value for the attributeid.
-
getTimestampGenerationDate
public final java.util.Date getTimestampGenerationDate()
Gets the value of the attributetimestampGenerationDate.- Returns:
- the value of the attribute
timestampGenerationDate.
-
setTimestampGenerationDate
public final void setTimestampGenerationDate(java.util.Date timestampGenerationDateParam)
Sets the value of the attributetimestampGenerationDate.- Parameters:
timestampGenerationDateParam- The value for the attributetimestampGenerationDate.
-
getAsn1Timestamp
public final org.bouncycastle.tsp.TimeStampToken getAsn1Timestamp()
Gets the value of the attributeasn1Timestamp.- Returns:
- the value of the attribute
asn1Timestamp.
-
setAsn1Timestamp
public final void setAsn1Timestamp(org.bouncycastle.tsp.TimeStampToken asn1TimestampParam)
Sets the value of the attributeasn1Timestamp.- Parameters:
asn1TimestampParam- The value for the attributeasn1Timestamp.
-
getXmlTimestamp
public final org.w3c.dom.Element getXmlTimestamp()
Gets the value of the attributexmlTimestamp.- Returns:
- the value of the attribute
xmlTimestamp.
-
setXmlTimestamp
public final void setXmlTimestamp(org.w3c.dom.Element xmlTimestampParam)
Sets the value of the attributexmlTimestamp.- Parameters:
xmlTimestampParam- The value for the attributexmlTimestamp.
-
getTstCertificate
public final java.security.cert.X509Certificate getTstCertificate()
Gets the value of the attributetstCertificate.- Returns:
- the value of the attribute
tstCertificate.
-
setTstCertificate
public final void setTstCertificate(java.security.cert.X509Certificate tstCertificateParam)
Sets the value of the attributetstCertificate.- Parameters:
tstCertificateParam- The value for the attributetstCertificate.
-
compareTo
public final int compareTo(XAdESTimeStampType o)
- Specified by:
compareToin interfacejava.lang.Comparable<XAdESTimeStampType>- See Also:
Comparable.compareTo(java.lang.Object)
-
getCanonicalizationAlgorithm
public final java.lang.String getCanonicalizationAlgorithm()
Gets the value of the attributecanonicalizationAlgorithm.- Returns:
- the value of the attribute
canonicalizationAlgorithm.
-
setCanonicalizationAlgorithm
public final void setCanonicalizationAlgorithm(java.lang.String canonicalizationAlgorithmParam)
Sets the value of the attributecanonicalizationAlgorithm.- Parameters:
canonicalizationAlgorithmParam- The value for the attributecanonicalizationAlgorithm.
-
-