[sunxacml-discuss] Problem with API sunxacml
Brought to you by:
farrukh_najmi,
sethp
|
From: Corvino F. <Fab...@at...> - 2006-01-18 10:53:28
|
Hi,
I am using sunxacml API and I have a problem. I have the DOM (Document
Object Model) of one policy and using the following code:
Element root = doc.getDocumentElement();
String name = root.getTagName();
if (name.equals("Policy")) {
AbstractPolicy pol = Policy.getInstance(root);
System.out.println("La policy ottenuta dal database Oracle e':
");
PolicyFinderResult pfr = new PolicyFinderResult(pol);
Set policyModules = new HashSet();
policyModules.add(pfr);
policyFinder1.setModules(policyModules);
} else {
// this isn't a root type that we know how to handle
throw new Exception("Unknown root document type: " + name);
}
PDPConfig pdp_config = new PDPConfig(attributeFinder, policyFinder1,
null);
// create the PDP
PDP pdp = new PDP(pdp_config);
// evaluate the request
ResponseCtx response = pdp.evaluate(request);
I have the following problem:
java.lang.ClassCastException: com.sun.xacml.finder.PolicyFinderResult
Help me!
thanks a lot!
|