public class SignatureTimeStamp
extends iaik.smime.attributes.SignatureTimeStampToken
SignatureTimeStampToken class.| Constructor and Description |
|---|
SignatureTimeStamp(iaik.asn1.ASN1Object timestampToken,
byte[] protectedSignatureValue)
Constructor specifying the timestamp token as ASN.1 object and the protected signature value.
|
SignatureTimeStamp(iaik.smime.attributes.SignatureTimeStampToken timestampToken,
byte[] protectedSignatureValue)
Constructor specifying the timestamp token and the protected signature value.
|
| Modifier and Type | Method and Description |
|---|---|
iaik.tsp.TimeStampToken |
getTimeStampToken()
Returns the timestamp value as TimeStampToken object.
|
void |
verifyTimeStampToken(iaik.x509.X509Certificate tsa_certificate)
Verify this timestamp's signature and ensure that the timestamp's imprint corresponds to the
expected imprint.
|
public SignatureTimeStamp(iaik.asn1.ASN1Object timestampToken,
byte[] protectedSignatureValue)
timestampToken - the timestamp token as ASN.1 objectprotectedSignatureValue - the signature value protected by this signature timestamppublic SignatureTimeStamp(iaik.smime.attributes.SignatureTimeStampToken timestampToken,
byte[] protectedSignatureValue)
timestampToken - the timestamp tokenprotectedSignatureValue - the signature value protected by this signature timestamppublic void verifyTimeStampToken(iaik.x509.X509Certificate tsa_certificate)
throws CmsCadesException,
iaik.tsp.TspVerificationException
tsa_certificate - The certificate of the timestamp authorityCmsCadesException - if the imprint is invalid or the timestamp token could not be parsed or no TSA
certificate is availableiaik.tsp.TspVerificationException - if this timestamp's signature could not be verifiedpublic iaik.tsp.TimeStampToken getTimeStampToken()
throws CmsCadesException
CmsCadesException - if the timestamp token could not be parsed