diff --git a/src/main/java/org/ow2/authzforce/xacml/json/model/XacmlJsonUtils.java b/src/main/java/org/ow2/authzforce/xacml/json/model/XacmlJsonUtils.java index 33c96f2c8210956d9b414b3fe8e5486126b8eeec..417de2e4abe11a24b00da2761e5e468375ee8553 100644 --- a/src/main/java/org/ow2/authzforce/xacml/json/model/XacmlJsonUtils.java +++ b/src/main/java/org/ow2/authzforce/xacml/json/model/XacmlJsonUtils.java @@ -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.