public boolean equals(Object obj) { if (obj == null || (!(obj instanceof Timestamp))) return false; Timestamp that = (Timestamp) obj; if (this == that) return true; return (timestamp.equals(that.getTimestamp()) && signerCertPath.equals(that.getSignerCertPath())); } }