Class UtilsTimestampOcspRfc3161


  • 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@.

    Version:
    1.1, 18/04/2022.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Logger LOGGER
      Attribute that represents the object that manages the log of the class.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        public static final Logger LOGGER
        Attribute that represents the object that manages the log of the class.
    • Method Detail

      • getTimestampFromRFC3161Service

        public static org.bouncycastle.tsp.TimeStampToken getTimestampFromRFC3161Service​(byte[] dataToStamp,
                                                                                         java.lang.String applicationID,
                                                                                         java.lang.String tsaCommunicationMode,
                                                                                         java.lang.String idClient)
                                                                                  throws SigningException
        Method that obtains an ASN.1 timestamp from TS@ RFC 3161 service.
        Parameters:
        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:
        idClient - Parameter that represents the client application identifier.
        Returns:
        an object that represents the ASN.1 timestamp.
        Throws:
        SigningException - If the method fails.
      • getTimestampFromRFC3161Service

        public static org.bouncycastle.tsp.TimeStampToken getTimestampFromRFC3161Service​(byte[] dataToStamp,
                                                                                         java.lang.String applicationID,
                                                                                         java.lang.String tsaCommunicationMode)
                                                                                  throws SigningException
        Method that obtains an ASN.1 timestamp from TS@ RFC 3161 service.
        Parameters:
        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:
        Returns:
        an object that represents the ASN.1 timestamp.
        Throws:
        SigningException - If the method fails.