Serializablepublic final class Timestamp extends Object implements Serializable
| Constructor | Description | 
|---|---|
| Timestamp | Constructs a  Timestamp. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | equals | 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  Timestampwas 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.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()
Timestamp was generated.public CertPath getSignerCertPath()
public int hashCode()
Timestamp. The hash code is generated using the date and time of the Timestamp and the TSA's certificate path.public boolean equals(Object obj)
Timestamp. Two timestamps are considered equal if the date and time of their timestamp's and their signer's certificate paths are equal.public String toString()
Timestamp.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/Timestamp.html