Can not create a "content" for resource category in xacml request
Whenever I try to set a non-null content-object in new Attribute(content, ..., XACML_3_0_RESOURCE, ...)
I get exceptions when calling requestPolicyDecision(request)
of the PDP-resource.
How do I add XML-content to as "content" of the "resource" in the request? In other words: how to create the content-object?
new Content(Collections.<Serializable>singletonList(XXXX));
does not work with XXXX of type String
or other types. Even empty content created with Xacml3JaxbHelper.XACML_3_0_OBJECT_FACTORY.createContent()
creates a "HTTP 400 Bad Request" error.