Home | History | Annotate | Download | only in security

Lines Matching refs:timestamp

36  * This class encapsulates information about a signed timestamp.
38 * It includes the timestamp's date and time as well as information about the
39 * Timestamping Authority (TSA) which generated and signed the timestamp.
45 public final class Timestamp implements Serializable {
50 * The timestamp's date and time
54 private Date timestamp;
64 * Hash code for this timestamp.
69 * Constructs a Timestamp.
71 * @param timestamp is the timestamp's date and time. It must not be null.
73 * @throws NullPointerException if timestamp or signerCertPath is null.
75 public Timestamp(Date timestamp, CertPath signerCertPath) {
76 if (timestamp == null || signerCertPath == null) {
79 this.timestamp = new Date(timestamp.getTime()); // clone
84 * Returns the date and time when the timestamp was generated.
86 * @return The timestamp's date and time.
89 return new Date(timestamp.getTime()); // clone
102 * Returns the hash code value for this timestamp.
103 * The hash code is generated using the date and time of the timestamp
106 * @return a hash code value for this timestamp.
110 myhash = timestamp.hashCode() + signerCertPath.hashCode();
117 * timestamp. Two timestamps are considered equal if the date and time of
118 * their timestamp's and their signer's certificate paths are equal.
120 * @param obj the object to test for equality with this timestamp.
122 * @return true if the timestamp are considered equal, false otherwise.
125 if (obj == null || (!(obj instanceof Timestamp))) {
128 Timestamp that = (Timestamp)obj;
133 return (timestamp.equals(that.getTimestamp()) &&
138 * Returns a string describing this timestamp.
140 * @return A string comprising the date and time of the timestamp and
146 sb.append("timestamp: " + timestamp);
162 timestamp = new Date(timestamp.getTime());