Class RFC3161TSAServiceInvoker
- java.lang.Object
-
- es.gob.afirma.rfc3161TSAServiceInvoker.RFC3161TSAServiceInvoker
-
public class RFC3161TSAServiceInvoker extends java.lang.ObjectClass that manages the generation of timestamps via TS@ RFC 3161 service (TCP, HTTPS and SSL).
Project:Time Stamping Authority.
- Version:
- 1.1, 18/04/2022.
-
-
Constructor Summary
Constructors Constructor Description RFC3161TSAServiceInvoker()Constructor method for the class RFC3161TSAServiceInvoker.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]generateTimeStampToken(java.lang.String protocol, java.lang.String applicationParam, byte[] dataParam)Method that invokes the RFC 3161 timestamp generation service from TS@.byte[]generateTimeStampToken(java.lang.String protocol, java.lang.String applicationParam, byte[] dataParam, java.lang.String idClient)Method that invokes the RFC 3161 timestamp generation service from TS@.
-
-
-
Method Detail
-
generateTimeStampToken
public final byte[] generateTimeStampToken(java.lang.String protocol, java.lang.String applicationParam, byte[] dataParam, java.lang.String idClient) throws TSAServiceInvokerExceptionMethod that invokes the RFC 3161 timestamp generation service from TS@.- Parameters:
protocol- Parameter that represents the protocol used to communicate with the RFC 3161 service. The allowed values are:applicationParam- Parameter that represents the name of the application which invokes the service.dataParam- Parameter that represents the data to stamp.idClient- Parameter that represents the client application identifier.- Returns:
- the timestamp response.
- Throws:
TSAServiceInvokerException- If the method fails.
-
generateTimeStampToken
public final byte[] generateTimeStampToken(java.lang.String protocol, java.lang.String applicationParam, byte[] dataParam) throws TSAServiceInvokerExceptionMethod that invokes the RFC 3161 timestamp generation service from TS@.- Parameters:
protocol- Parameter that represents the protocol used to communicate with the RFC 3161 service. The allowed values are:applicationParam- Parameter that represents the name of the application which invokes the service.dataParam- Parameter that represents the data to stamp.- Returns:
- the timestamp response.
- Throws:
TSAServiceInvokerException- If the method fails.
-
-