Timestamp

class Timestamp : Serializable
kotlin.Any
   ↳ java.security.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.

Summary

Public constructors
<init>(timestamp: Date!, signerCertPath: CertPath!)

Constructs a Timestamp.

Public methods
Int

Returns the hash code value for this timestamp.

CertPath!

Returns the certificate path for the Timestamping Authority.

Boolean
equals(other: Any?)

Tests for equality between the specified object and this timestamp.

String

Returns a string describing this timestamp.

Date!

Returns the date and time when the timestamp was generated.

Public constructors

<init>

Timestamp(timestamp: Date!, signerCertPath: CertPath!)

Constructs a Timestamp.

Parameters
timestamp Date!: is the timestamp's date and time. It must not be null.
signerCertPath Date!: is the TSA's certificate path. It must not be null.
Exceptions
NullPointerException if timestamp or signerCertPath is null.

Public methods

hashCode

fun hashCode(): Int

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.

Return
Int: a hash code value for this timestamp.

getSignerCertPath

fun getSignerCertPath(): CertPath!

Returns the certificate path for the Timestamping Authority.

Return
CertPath!: The TSA's certificate path.

equals

fun equals(other: Any?): Boolean

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.

Parameters
obj Any?: the object to test for equality with this timestamp.
Return
Boolean: true if the timestamp are considered equal, false otherwise.

toString

fun toString(): String

Returns a string describing this timestamp.

Return
String: A string comprising the date and time of the timestamp and its signer's certificate.

getTimestamp

fun getTimestamp(): Date!

Returns the date and time when the timestamp was generated.

Return
Date!: The timestamp's date and time.