Skip to content
Snippets Groups Projects
Commit 5c54d6e7 authored by cdanger's avatar cdanger
Browse files

Merge branch 'release/3.0.2'

parents 7d467a35 5d89100c
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@
All notable changes to this project are documented in this file following the [Keep a CHANGELOG](http://keepachangelog.com) conventions. This project adheres to [Semantic Versioning](http://semver.org).
## 3.0.2
### Fixed
- Backward compatibility on XacmlJsonUtils#canonicalizeResponse(), i.e. avoid breaking compatibility for reverse dependencies
## 3.0.1
### Fixed
- JSON schema identifiers in XACML/JSON schemas: updated to valid links on github
......
......@@ -7,7 +7,7 @@
</parent>
<artifactId>authzforce-ce-xacml-json-model</artifactId>
<packaging>jar</packaging>
<version>3.0.1</version>
<version>3.0.2</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>AuthzForce - Data model for JSON Profile of XACML 3.0</description>
<url>${project.url}</url>
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment