public interface TimeStampToken
Modifier and Type | Method and Description |
---|---|
long |
getAccuracy()
Returns the accuracy of the time-stamp token in milliseconds.
|
BigInteger |
getSerialNumber()
Returns the serial number of the time-stamp token.
|
Date |
getTime()
Returns the generation time of the time-stamp token.
|
X509Certificate |
getTSACertificate()
Returns the certificate of the TSA that issued the time-stamp token, if the
certificate is present in the time-stamp token.
|
String |
getTSAIdentifier()
Returns the identifier of the TSA that issued the time-stamp token.
|
boolean |
validateHashValue(OctetStreamData data)
Validates the hash value in the time-stamp token with the hash value
computed from the supplied
data . |
boolean |
validateSignature(X509Certificate cert)
Validates the signature of the time-stamp token.
|
String getTSAIdentifier()
null
if the TSA's
identifier is not present in the time-stamp token.X509Certificate getTSACertificate()
null
if the TSA's
certificate is not present in the time-stamp token.BigInteger getSerialNumber()
Date getTime()
long getAccuracy()
A negative value indicates that no accuracy is given in the time-stamp token.
boolean validateSignature(X509Certificate cert) throws TimeStampTokenException
cert
- the X509 certificate of the TSA that issued this time-stamp token
(may be null
if the certificate is present in the
time-stamp token)true
if the time-stamp token was validated
successfully, otherwise false
TimeStampTokenException
- if an unexpected exception occurs while validating the signature of
the time-stamp tokenboolean validateHashValue(OctetStreamData data) throws TimeStampTokenException
data
.data
- the data to compute the hash value from and validate it with the
hash value in the time-stamp tokentrue
if the hash value in the time-stamp token is
equal to the hash-value computed from the supplied
data
with the digest algorithm contained in the
time-stamp token, otherwise false
TimeStampTokenException
- if an unexpected exception occurs while the validation of the
digest value© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC