expiresCalendar = timestampType.getExpires().getAsXMLGregorianCalendar();
} catch (IllegalArgumentException e) {
throw new WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e);
}
if (expiresCalendar.getFractionalSecond().scale() > 3) {
securityContext.handleBSPRule(BSPRule.R3229);
}
if (expiresCalendar.getSecond() > 59) {
securityContext.handleBSPRule(BSPRule.R3215);
}
String valueType = XMLSecurityUtils.getQNameAttribute(timestampType.getExpires().getOtherAttributes(), WSSConstants.ATT_NULL_ValueType);