public final class Timestamp extends Object implements Serializable
Timestamp
represents a signed time stamp. Timestamp
is
immutable.Constructor and Description |
---|
Timestamp(Date timestamp,
CertPath signerCertPath)
Constructs a new instance of
Timestamp with the specified timestamp and the given certificate path. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this
Timestamp for equality
and returns true if the specified object is equal, false
otherwise. |
CertPath |
getSignerCertPath()
Returns the certificate path of this
Timestamp . |
Date |
getTimestamp()
Returns the date and time of this
Timestamp . |
int |
hashCode()
Returns the hash code value for this
Timestamp . |
String |
toString()
Returns a string containing a concise, human-readable description of this
Timestamp . |
public Timestamp(Date timestamp, CertPath signerCertPath)
Timestamp
with the specified timestamp
and the given certificate path.timestamp
- date and time.signerCertPath
- the certificate path.NullPointerException
- if timestamp
is null
or if signerCertPath
is null
.public boolean equals(Object obj)
Timestamp
for equality
and returns true
if the specified object is equal, false
otherwise. The given object is equal to this Timestamp
, if it is
an instance of Timestamp
, the two timestamps have an equal date
and time and their certificate paths are equal.equals
in class Object
obj
- object to be compared for equality with this Timestamp
.true
if the specified object is equal to this Timestamp
, otherwise false
.hashCode()
public CertPath getSignerCertPath()
Timestamp
.Timestamp
.public Date getTimestamp()
Timestamp
.Timestamp
.public int hashCode()
Timestamp
. Returns the same
hash code for Timestamp
s that are equal to each other as
required by the general contract of Object.hashCode()
.hashCode
in class Object
Timestamp
.Object.equals(Object)
,
equals(Object)