Commit aa28b853 authored by cdanger's avatar cdanger
Browse files

Fixed backward compatibility on XacmlJsonUtils#canonicalizeResponse(JSONObject)

parent 52f594bc
......@@ -111,6 +111,18 @@ public final class XacmlJsonUtils
* Same as {@link #canonicalizeResponse(JSONObject, boolean)} but with second parameter set to false.
* @param xacmlJsonResponse
* input XACML Response
* @return canonicalized response
public static JSONObject canonicalizeResponse(final JSONObject xacmlJsonResponse)
return canonicalizeResponse(xacmlJsonResponse, false);
* Canonicalize a XACML/JSON response, typically for comparison with another one. In particular, it removes every Result's status as we choose to ignore the Status. Indeed, a PDP implementation
* might return a perfectly XACML-compliant response but with extra StatusCode/Message/Detail that we would not expect.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment