public final class Timestamp extends Object implements Serializable
Constructor and Description |
---|
Timestamp(Date timestamp,
CertPath signerCertPath)
Constructs a Timestamp.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public Date getTimestamp()
public CertPath getSignerCertPath()
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test for equality with this timestamp.Object.hashCode()
,
HashMap
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.