Merge pull request #4672 from thomasdarimont/issues/fix-comparison-in-saml-11-request-response-parsers

KEYCLOAK-5838 Fix comparison in SAMLSloRequestParser and SAMLSloResponseParser
This commit is contained in:
Hynek Mlnařík 2017-11-13 14:46:56 +01:00 committed by GitHub
commit 98a46c4497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -86,7 +86,8 @@ public class SAMLSloRequestParser extends SAMLRequestAbstractParser implements P
* @see {@link ParserNamespaceSupport#supports(QName)}
*/
public boolean supports(QName qname) {
return PROTOCOL_NSURI.get().equals(qname.getNamespaceURI()) && JBossSAMLConstants.LOGOUT_REQUEST.equals(qname.getLocalPart());
return PROTOCOL_NSURI.get().equals(qname.getNamespaceURI())
&& JBossSAMLConstants.LOGOUT_REQUEST.get().equals(qname.getLocalPart());
}
/**

View file

@ -75,6 +75,6 @@ public class SAMLSloResponseParser extends SAMLStatusResponseTypeParser implemen
*/
public boolean supports(QName qname) {
return JBossSAMLURIConstants.PROTOCOL_NSURI.get().equals(qname.getNamespaceURI())
&& LOGOUT_RESPONSE.equals(qname.getLocalPart());
&& LOGOUT_RESPONSE.get().equals(qname.getLocalPart());
}
}