@Override public boolean equals(Object object) { if (!(object instanceof Timestamp)) { return false; } Timestamp timestamp = (Timestamp)object; if (!compare(timestamp.getCreated(), getCreated())) { return false; } if (!compare(timestamp.getExpires(), getExpires())) { return false; } return true; }
if (timeStamp.getExpires() != null) { replayCache.add(identifier, 1L + Duration.between(Instant.now(), timeStamp.getExpires()).getSeconds()); } else { replayCache.add(identifier);
if (data.isRequireTimestampExpires() && timeStamp.getExpires() == null) { throw new WSSecurityException( WSSecurityException.ErrorCode.SECURITY_ERROR,