public final class UtilsTimestampWS
extends java.lang.Object
Class that contains methods related to the manage of timestamps.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOGGER
Attribute that represents the object that manages the log of the class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkInputDocumentRFC3161TimeStamp(org.w3c.dom.Element inputDocuments,
org.bouncycastle.tsp.TimeStampToken tst)
Method that checks if the input document associated to a renovation of a RFC 3161 time-stamp is structurally correct.
|
static void |
checkInputDocumentXMLTimeStamp(org.w3c.dom.Element inputDocuments,
org.w3c.dom.Element signature)
Method that checks if the input document associated to a renovation of a XML time-stamp is structurally correct.
|
static java.lang.Object |
getTimestampFromDssService(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String signatureType)
Method that obtains a timestamp from TS@.
|
static java.lang.Object |
getTimestampFromDssService(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String signatureType,
java.lang.String idClient)
Method that obtains a timestamp from TS@.
|
public static final Logger LOGGER
public static java.lang.Object getTimestampFromDssService(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String signatureType)
throws SigningException
dataToStamp - Parameter that represents the data to stamp.applicationID - Parameter that represents the identifier of the client application.signatureType - Parameter that represents the timestamp type to generate. The allowed values are:
DSSConstants.TimestampForm.RFC_3161 for ASN.1 timestamp.DSSConstants.TimestampForm.XML for XML timestamp.TimeStampToken when the timestamp is ASN.1 type.Element when the timestamp is XML type.SigningException - If the method fails.public static java.lang.Object getTimestampFromDssService(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String signatureType,
java.lang.String idClient)
throws SigningException
dataToStamp - Parameter that represents the data to stamp.applicationID - Parameter that represents the identifier of the client application.signatureType - Parameter that represents the timestamp type to generate. The allowed values are:
DSSConstants.TimestampForm.RFC_3161 for ASN.1 timestamp.DSSConstants.TimestampForm.XML for XML timestamp.idClient - Parameter that represents client id.TimeStampToken when the timestamp is ASN.1 type.Element when the timestamp is XML type.SigningException - If the method fails.public static void checkInputDocumentXMLTimeStamp(org.w3c.dom.Element inputDocuments,
org.w3c.dom.Element signature)
throws TSAServiceInvokerException
inputDocuments - Parameter that represents the dss:InputDocuments element of the time-stamp renovation request.signature - Parameter that represents the ds:Signature element of the time-stamp renovation request.TSAServiceInvokerException - If the validation fails.public static void checkInputDocumentRFC3161TimeStamp(org.w3c.dom.Element inputDocuments,
org.bouncycastle.tsp.TimeStampToken tst)
throws TSAServiceInvokerException
inputDocuments - Parameter that represents the dss:InputDocuments element of the time-stamp renovation request.tst - Parameter that represents thr RFC 3161 time-stamp.TSAServiceInvokerException - If the input document isn't valid.