0

I'm writing my master-these and i have some problemes with the PDP evaluation of request. I use sunxacml:2.0 in java. when i define a request and evalue it with PDP the response is NotApplicable but when i define a request and encoding in file and i define another request through the encoding's file, the response of the evaluation for this request is permit or deny.

Question: with sunxacml:2.0, the request should always encoding ? or how can i do it?

Resquest request= new Request(Set subjects, Set Resource, Set action, Set environment); request.encoding(FileOutputStream file); pdp.evalue(request)-> response: Notapplicable RequestCtx req=RequestCtx.getInstance(new FileInputStream(file))   pdp.evalue(req)-> response: permit or deniy
David Brossard
  • 13,584
  • 6
  • 55
  • 88
student
  • 1
  • 2
  • Can you post the request and the policy? – David Brossard Apr 23 '18 at 17:24
  • i have define a simple request and a simple pdp in java. You can do: – student Apr 24 '18 at 16:26
  • i have define a simple request and a simple pdp in java. You can do: ResquestCtx req=new RequestCtx(subjects,resource,action,environment); pdp.evaluete(req); you can take any Policy with constraint on resource or subject or action. the response is NotApplicable but if you transforme and save in one file : req.ecoding(new FileOutputStream(file)) and RequestCtx req2=RequestCtx.getInstance(FileInputStream(file)) and pdp.evalute(req2) than the response is permit or deny. – student Apr 24 '18 at 16:35
  • Edit your question to add the policy, request and response – David Brossard Apr 25 '18 at 01:42
  • XACML 2.0 and SunXACML are pretty much obsolete. You should switch to XACML 3.0 for better support from the XACML community. See the [wikipedia page](https://en.wikipedia.org/wiki/XACML#XACML_Implementations) for XACML-3.0-compliant Java implementations. – cdan May 02 '18 at 15:34

0 Answers0