public final class Timestamp extends Object implements Serializable
Constructor and Description |
---|
Timestamp(Date timestamp, CertPath signerCertPath)
构建了一个时间戳。
|
public Timestamp(Date timestamp, CertPath signerCertPath)
timestamp
-时间戳的日期和时间。它不能为空。
signerCertPath
是TSA的证书路径。它不能为空。
NullPointerException
-如果时间戳或signercertpath是空的。
public Date getTimestamp()
public CertPath getSignerCertPath()
public int hashCode()
hashCode
方法重写,继承类
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object obj)
equals
方法重写,继承类
Object
obj
-与此相等测试对象的时间戳。
Object.hashCode()
,
HashMap
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.