Skip to content

Commit db6c5ac

Browse files
authored
Merge pull request #211 from rushimusmaximus/master
corrected typo in SamlResponse error message
2 parents db46030 + 9cfea68 commit db6c5ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/com/onelogin/saml2/authn/SamlResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public boolean isValid(String requestId) {
241241
// EncryptedAttributes are not supported
242242
NodeList encryptedAttributeNodes = this.queryAssertion("/saml:AttributeStatement/saml:EncryptedAttribute");
243243
if (encryptedAttributeNodes.getLength() > 0) {
244-
throw new ValidationError("There is an EncryptedAttribute in the Response and this SP not support them", ValidationError.ENCRYPTED_ATTRIBUTES);
244+
throw new ValidationError("There is an EncryptedAttribute in the Response and this SP does not support them", ValidationError.ENCRYPTED_ATTRIBUTES);
245245
}
246246

247247
// Check destination

core/src/test/java/com/onelogin/saml2/test/authn/AuthnResponseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ public void testIsInValidEncAttrs() throws IOException, Error, XPathExpressionEx
14491449
settings.setStrict(true);
14501450
samlResponse = new SamlResponse(settings, newHttpRequest(samlResponseEncoded));
14511451
assertFalse(samlResponse.isValid());
1452-
assertEquals("There is an EncryptedAttribute in the Response and this SP not support them", samlResponse.getError());
1452+
assertEquals("There is an EncryptedAttribute in the Response and this SP does not support them", samlResponse.getError());
14531453
}
14541454

14551455
/**

0 commit comments

Comments
 (0)