public final class UtilsTimestampOcspRfc3161
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 org.bouncycastle.tsp.TimeStampToken |
getTimestampFromRFC3161Service(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String tsaCommunicationMode)
Method that obtains an ASN.1 timestamp from TS@ RFC 3161 service.
|
static org.bouncycastle.tsp.TimeStampToken |
getTimestampFromRFC3161Service(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String tsaCommunicationMode,
java.lang.String idClient)
Method that obtains an ASN.1 timestamp from TS@ RFC 3161 service.
|
public static final Logger LOGGER
public static org.bouncycastle.tsp.TimeStampToken getTimestampFromRFC3161Service(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String tsaCommunicationMode,
java.lang.String idClient)
throws SigningException
dataToStamp - Parameter that represents the data to stamp.applicationID - Parameter that represents the identifier of the client application.tsaCommunicationMode - Parameter that represents the protocol defined to communicate with TS@. The allowed values are:
#TSA_RFC3161_TCP_COMMUNICATION for TCP communication.#TSA_RFC3161_HTTPS_COMMUNICATION for HTTPS communication.#TSA_RFC3161_SSL_COMMUNICATION for SSL communication.idClient - Parameter that represents the client application identifier.SigningException - If the method fails.public static org.bouncycastle.tsp.TimeStampToken getTimestampFromRFC3161Service(byte[] dataToStamp,
java.lang.String applicationID,
java.lang.String tsaCommunicationMode)
throws SigningException
dataToStamp - Parameter that represents the data to stamp.applicationID - Parameter that represents the identifier of the client application.tsaCommunicationMode - Parameter that represents the protocol defined to communicate with TS@. The allowed values are:
#TSA_RFC3161_TCP_COMMUNICATION for TCP communication.#TSA_RFC3161_HTTPS_COMMUNICATION for HTTPS communication.#TSA_RFC3161_SSL_COMMUNICATION for SSL communication.SigningException - If the method fails.