This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.security
class Timestamp

java.lang.Object extended by java.security.Timestamp
All Implemented Interfaces:
Serializable

public final class Timestamp
extends Object
implements Serializable

This class encapsulates information about a signed timestamp. It is immutable. It includes the timestamp's date and time as well as information about the Timestamping Authority (TSA) which generated and signed the timestamp.


Constructor Summary
Timestamp(Date timestamp, CertPath signerCertPath)

          Constructs a Timestamp.
 
Method Summary
 boolean

          Tests for equality between the specified object and this timestamp.
 CertPath

          Returns the certificate path for the Timestamping Authority.
 Date

          Returns the date and time when the timestamp was generated.
 int

          Returns the hash code value for this timestamp.
 String

          Returns a string describing this timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timestamp

public Timestamp(Date timestamp,
                 CertPath signerCertPath)
Constructs a Timestamp.

Parameters:
timestamp - is the timestamp's date and time. It must not be null.
signerCertPath - is the TSA's certificate path. It must not be null.
Method Detail

equals

public boolean equals(Object obj)
Tests for equality between the specified object and this timestamp. Two timestamps are considered equal if the date and time of their timestamp's and their signer's certificate paths are equal.

Overrides:
equals in class Object
Parameters:
obj - the object to test for equality with this timestamp.
Returns:
true if the timestamp are considered equal, false otherwise.

getSignerCertPath

public CertPath getSignerCertPath()
Returns the certificate path for the Timestamping Authority.

Returns:
The TSA's certificate path.

getTimestamp

public Date getTimestamp()
Returns the date and time when the timestamp was generated.

Returns:
The timestamp's date and time.

hashCode

public int hashCode()
Returns the hash code value for this timestamp. The hash code is generated using the date and time of the timestamp and the TSA's certificate path.

Overrides:
hashCode in class Object
Returns:
a hash code value for this timestamp.

toString

public String toString()
Returns a string describing this timestamp.

Overrides:
toString in class Object
Returns:
A string comprising the date and time of the timestamp and its signer's certificate.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.