Name

Timestamp

Synopsis

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.

java.security.Timestamp

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( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.