Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Timestamp

public final class Timestamp
extends Object implements Serializable

java.lang.Object
   ↳ java.security.Timestamp


Timestamp represents a signed time stamp. Timestamp is immutable.

Summary

Public constructors

Timestamp(Date timestamp, CertPath signerCertPath)

Constructs a new instance of Timestamp with the specified timestamp and the given certificate path.

Public methods

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.

Inherited methods

From class java.lang.Object

Public constructors

Timestamp

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

Constructs a new instance of Timestamp with the specified timestamp and the given certificate path.

Parameters
timestamp Date: date and time.
signerCertPath CertPath: the certificate path.
Throws
NullPointerException if timestamp is null or if signerCertPath is null.

Public methods

equals

Added in API level 1
boolean equals (Object obj)

Compares the specified object with this 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.

Parameters
obj Object: object to be compared for equality with this Timestamp.
Returns
boolean true if the specified object is equal to this Timestamp, otherwise false.

See also:

getSignerCertPath

Added in API level 1
CertPath getSignerCertPath ()

Returns the certificate path of this Timestamp.

Returns
CertPath the certificate path of this Timestamp.

getTimestamp

Added in API level 1
Date getTimestamp ()

Returns the date and time of this Timestamp.

Returns
Date the date and time of this Timestamp.

hashCode

Added in API level 1
int hashCode ()

Returns the hash code value for this Timestamp. Returns the same hash code for Timestamps that are equal to each other as required by the general contract of hashCode().

Returns
int the hash code value for this Timestamp.

See also:

toString

Added in API level 1
String toString ()

Returns a string containing a concise, human-readable description of this Timestamp.

Returns
String a printable representation for this Timestamp.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.