}
Timestamp timeStamp = credential.getTimestamp();
// Validate whether the security semantics have expired
if (timeStampStrict && timeStamp.isExpired()
|| !timeStamp.verifyCreated(timeStampTTL, futureTimeToLive)) {
throw new WSSecurityException(
WSSecurityException.ErrorCode.MESSAGE_EXPIRED,
"invalidTimestamp",
"The security semantics of the message have expired");
}