null,
maxClockSkew,
timestampFreshnessLimit);
request.isUsernameToken(true);
TimestampValidationCallback timestampValidationCallback =
new TimestampValidationCallback(request);
ProcessingContext.copy(timestampValidationCallback.getRuntimeProperties(), context);
timestampValidationCallback.setValidator(tsValidator);
try {
timestampValidationCallback.getResult();
return;
} catch (TimestampValidationCallback.TimestampValidationException e) {
log.log(Level.SEVERE,LogStringsMessages.WSS_0229_FAILED_VALIDATING_TIME_STAMP(), e);
throw SOAPUtil.newSOAPFaultException(MessageConstants.WSSE_INVALID_SECURITY_TOKEN, e.getMessage(), e);
}
}
if (this.useXWSSCallbacks) {
TimestampValidationCallback.UTCTimestampRequest request =
new TimestampValidationCallback.UTCTimestampRequest(
creationTime,
null,
maxClockSkew,
timestampFreshnessLimit);
TimestampValidationCallback timestampValidationCallback =
new TimestampValidationCallback(request);
ProcessingContext.copy(timestampValidationCallback.getRuntimeProperties(), context);
Callback[] callbacks = new Callback[]{timestampValidationCallback};
try {
_handler.handle(callbacks);
return;
} catch (UnsupportedCallbackException e) {