xades4j.utils
Class TimeStampTokenInfo

java.lang.Object
  extended by xades4j.utils.TimeStampTokenInfo

public class TimeStampTokenInfo
extends Object

Represents the TSTInfo strcture within a time-stamp token (RFC 3161). Based on the sun.security.timestamp.TimestampToken class. Copyright 2006 Sun Microsystems, Inc. All rights reserved. author: Vincent Ryan

Added getters for fields other than genTime.

Author:
Luís

Constructor Summary
TimeStampTokenInfo(byte[] timestampTokenInfo)
          Constructs an object to store a timestamp token.
 
Method Summary
 Date getDate()
          Extract the date and time from the timestamp token.
 sun.security.x509.AlgorithmId getHashAlgorithm()
           
 byte[] getHashedMessage()
           
 sun.security.util.ObjectIdentifier getPolicy()
           
 BigInteger getSerialNumber()
           
 int getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampTokenInfo

public TimeStampTokenInfo(byte[] timestampTokenInfo)
                   throws IOException
Constructs an object to store a timestamp token.

Parameters:
timestampTokenInfo - a buffer containing the ASN.1 BER encoding of the TSTInfo element defined in RFC 3161.
Throws:
IOException
Method Detail

getDate

public Date getDate()
Extract the date and time from the timestamp token.

Returns:
The date and time when the timestamp was generated.

getHashAlgorithm

public sun.security.x509.AlgorithmId getHashAlgorithm()

getHashedMessage

public byte[] getHashedMessage()

getPolicy

public sun.security.util.ObjectIdentifier getPolicy()

getSerialNumber

public BigInteger getSerialNumber()

getVersion

public int getVersion()


Copyright © 2012. All Rights Reserved.