xades4j.providers.impl
Class DefaultTimeStampVerificationProvider
java.lang.Object
xades4j.providers.impl.DefaultTimeStampVerificationProvider
- All Implemented Interfaces:
- TimeStampVerificationProvider
public class DefaultTimeStampVerificationProvider
- extends Object
- implements TimeStampVerificationProvider
Default implementation of TimeStampVerificationProvider. It verifies
the token signature, including the TSA certificate, and the digest imprint.
It uses the SUN proprietary API in the sun.security.pkcs package
to parse the token and access its members. Only supports DER-encoded tokens.
- Author:
- Luís
|
Method Summary |
Date |
verifyToken(byte[] timeStampToken,
byte[] tsDigestInput)
Verifies a time-stamp token. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTimeStampVerificationProvider
@Inject
public DefaultTimeStampVerificationProvider(CertificateValidationProvider certificateValidationProvider)
verifyToken
public Date verifyToken(byte[] timeStampToken,
byte[] tsDigestInput)
throws TimeStampTokenVerificationException
- Description copied from interface:
TimeStampVerificationProvider
- Verifies a time-stamp token. This includes verifying the digest value and
the token signature, including the TSA certificate.
- Specified by:
verifyToken in interface TimeStampVerificationProvider
- Parameters:
timeStampToken - the encoded time-stamp tokentsDigestInput - 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.