xades4j.providers
Interface TimeStampTokenProvider

All Known Implementing Classes:
DefaultTimeStampTokenProvider

public interface TimeStampTokenProvider

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.

Author:
Luís
See Also:
DefaultTimeStampTokenProvider

Nested Class Summary
static class TimeStampTokenProvider.TimeStampTokenRes
           
 
Method Summary
 TimeStampTokenProvider.TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput, String digestAlgUri)
          Gets a time-stamp token.
 

Method Detail

getTimeStampToken

TimeStampTokenProvider.TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput,
                                                           String digestAlgUri)
                                                           throws TimeStampTokenGenerationException
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


Copyright © 2012. All Rights Reserved.