Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 558
نمايش فراداده

Timestampjava.security

Java 5.0serializable

An instance of this class is an immutable signed timestamp. getTimestamp( ) returns the timestamp as a java.util.Date. getSignerCertPath( ) returns the certificate path of the Timestamping Authority (TSA) that signed the object. Timestamp objects are used by the CodeSigner class.

Figure 14-43. java.security.Timestamp

public final class

Timestamp implements Serializable { // Public Constructors public

Timestamp (java.util.Date

timestamp , java.security.cert.CertPath

signerCertPath ); // Public Instance Methods public java.security.cert.CertPath

getSignerCertPath ( ); public java.util.Date

getTimestamp ( ); // Public Methods Overriding Object public boolean

equals (Object

obj ); public int

hashCode ( ); public String

toString ( ); }

Passed To

CodeSigner.CodeSigner( )

Returned By

CodeSigner.getTimestamp( )