public interface

TimeStampTokenProvider

xades4j.providers.TimeStampTokenProvider
Known Indirect Subclasses

Class Overview

Provider of time-stamp tokens. Used whenever a time-stamp token property is used. The actual means of obtaining the token depend on the implementation.

A default implementation is provided.

Summary

Nested Classes
class TimeStampTokenProvider.TimeStampTokenRes  
Public Methods
abstract TimeStampTokenProvider.TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput, String digestAlgUri)
Gets a time-stamp token.

Public Methods

public abstract TimeStampTokenProvider.TimeStampTokenRes getTimeStampToken (byte[] tsDigestInput, String digestAlgUri)

Gets a time-stamp token.

Parameters
tsDigestInput the input for the digest to be sent to the TSA
digestAlgUri the digest algorithm that should be used to calculate the digest
Returns
  • the time-stamp token data
Throws
TimeStampTokenGenerationException if there's an error getting the time-stamp