Package xades4j.providers.impl
Class AbstractTimeStampTokenProvider
java.lang.Object
xades4j.providers.impl.AbstractTimeStampTokenProvider
- All Implemented Interfaces:
TimeStampTokenProvider
- Direct Known Subclasses:
HttpTimeStampTokenProvider
public abstract class AbstractTimeStampTokenProvider
extends Object
implements TimeStampTokenProvider
Implementation of
TimeStampTokenProvider
that gets time-stamp tokens
from a TSA. Requests are issued with certReq
set to
true
.- Author:
- luis
-
Nested Class Summary
Nested classes/interfaces inherited from interface xades4j.providers.TimeStampTokenProvider
TimeStampTokenProvider.TimeStampTokenRes
-
Method Summary
Modifier and TypeMethodDescriptiongetTimeStampToken
(byte[] tsDigestInput, String digestAlgUri) Gets a time-stamp token.
-
Method Details
-
getTimeStampToken
public final TimeStampTokenProvider.TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput, String digestAlgUri) throws TimeStampTokenGenerationException Description copied from interface:TimeStampTokenProvider
Gets a time-stamp token.- Specified by:
getTimeStampToken
in interfaceTimeStampTokenProvider
- Parameters:
tsDigestInput
- the input for the digest to be sent to the TSAdigestAlgUri
- 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
-