コード例 #1
0
  protected void validateDoNotCache(Assertion assertion) throws ValidationException {

    if (assertion.getMinorVersion() == 0) {
      Conditions conditions = assertion.getConditions();
      if (conditions != null) {
        for (Condition condition : conditions.getConditions()) {
          if (condition instanceof DoNotCacheCondition) {
            throw new ValidationException("DoNotCacheCondition not valid in SAML1.0");
          }
        }
      }
    }
  }