/** * Test that the version is SAML1.1 or 1.0 * @param assertion what to test * @throws ValidationException */ protected void validateVersion(Assertion assertion) throws ValidationException { if ((assertion.getMajorVersion() != 1) && (assertion.getMinorVersion() != 0 || assertion.getMinorVersion() != 1)) { throw new ValidationException("Invalid Version"); } }