Added in API level 1

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
Timestamp(timestamp: Date!, signerCertPath: CertPath!)

Constructs a Timestamp.

Public methods
Boolean
equals(other: Any?)

Tests for equality between the specified object and this timestamp.

CertPath!

Returns the certificate path for the Timestamping Authority.

Date!

Returns the date and time when the timestamp was generated.

Int

Returns the hash code value for this timestamp.

String

Returns a string describing this timestamp.

Public constructors

Timestamp

Added in API level 1
Timestamp(
    timestamp: Date!,
    signerCertPath: CertPath!)

Constructs a Timestamp.

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

Public methods

equals

Added in API level 1
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 the object to test for equality with this timestamp.
Return
Boolean true if the timestamp are considered equal, false otherwise.

getSignerCertPath

Added in API level 1
fun getSignerCertPath(): CertPath!

Returns the certificate path for the Timestamping Authority.

Return
CertPath! The TSA's certificate path.

getTimestamp

Added in API level 1
fun getTimestamp(): Date!

Returns the date and time when the timestamp was generated.

Return
Date! The timestamp's date and time.

hashCode

Added in API level 1
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.

toString

Added in API level 1
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.