|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Timestamp
public final class Timestamp
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 |
equals(Object obj)
Tests for equality between the specified object and this timestamp. |
CertPath |
getSignerCertPath()
Returns the certificate path for the Timestamping Authority. |
Date |
getTimestamp()
Returns the date and time when the timestamp was generated. |
int |
hashCode()
Returns the hash code value for this timestamp. |
String |
toString()
Returns a string describing this timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Timestamp(Date timestamp,
CertPath signerCertPath)
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.
NullPointerException - if timestamp or signerCertPath is null.| Method Detail |
|---|
public Date getTimestamp()
public CertPath getSignerCertPath()
public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object obj)
equals in class Objectobj - the object to test for equality with this timestamp.
Object.hashCode(),
Hashtablepublic String toString()
toString in class Object
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.