xades4j.providers
Interface TimeStampVerificationProvider

All Known Implementing Classes:
DefaultTimeStampVerificationProvider

public interface TimeStampVerificationProvider

Provides verification of time-stamp tokens. This is used whenever a time-stamp property needs to be verified.

Author:
Luís

Method Summary
 Date verifyToken(byte[] timeStampToken, byte[] tsDigestInput)
          Verifies a time-stamp token.
 

Method Detail

verifyToken

Date verifyToken(byte[] timeStampToken,
                 byte[] tsDigestInput)
                 throws TimeStampTokenVerificationException
Verifies a time-stamp token. This includes verifying the digest value and the token signature, including the TSA certificate.

Parameters:
timeStampToken - the encoded time-stamp token
tsDigestInput - the input purportedly used in time-stamp creation, calculated from the current signature
Returns:
the time-stamp
Throws:
TimeStampTokenVerificationException - if the token cannot be validated (see subclasses of the exception)


Copyright © 2012. All Rights Reserved.