-
Notifications
You must be signed in to change notification settings - Fork 404
Description
com.onelogin.saml2.authn.SamlResponse:1221-1225
NodeList AssertionDataNodes = Util.query(dom, "/samlp:Response/saml:EncryptedAssertion/saml:Assertion"); if (encryptedDataNodes.getLength() == 0) { throw new ValidationError("No /samlp:Response/saml:EncryptedAssertion/saml:Assertion element found", ValidationError.MISSING_ENCRYPTED_ELEMENT); } Node assertionNode = AssertionDataNodes.item(0);
should say
NodeList assertionDataNodes = Util.query(dom, "/samlp:Response/saml:EncryptedAssertion/saml:Assertion"); if (assertionDataNodes.getLength() == 0) { throw new ValidationError("No /samlp:Response/saml:EncryptedAssertion/saml:Assertion element found", ValidationError.MISSING_ENCRYPTED_ELEMENT); } Node assertionNode = assertionDataNodes.item(0);
(coding style and logical/copy&paste error)