Re: [sunxacml-discuss] PolicyFinderModule.java
Brought to you by:
farrukh_najmi,
sethp
|
From: Muhammad M. A. <Muh...@ui...> - 2005-03-19 11:31:59
|
Dear seth,
now i explored the API, n previoulsy as u responded that it just need to
implement IsIDReferenceSupported() method just to include policy referencing
mechanism thats why i was trying to only include the aforementioned method.
This time my quesitons are very specific. This is a flow of control , i am
sure, u really know about this, but as a matter of fact, i am giving the
full flow of control , i means from where the problem start:
1. permitOverridesPolicyAlg.java have a method combine(...) which calls
MatchResult match = policy.match(context);
2. now it is policyreference.java n method match
return getTarget().match(context);
3. public Target getTarget() {
return resolvePolicy().getTarget();
}
4. private AbstractPolicy resolvePolicy() {
...
PolicyFinderResult pfr = finder.findPolicy(reference, policyType);
..}
5. public PolicyFinderResult findPolicy(URI idReference, int type)
throws IllegalArgumentException
{
...
PolicyFinderResult newResult = module.findPolicy(idReference,
type);
}
now the above statement calls the constructor n set the result n status both
equals to null by :
public PolicyFinderResult() {
policy = null;
status = null;
}
could u plz guide me in this regard now, that if want to add the test code
(which includes the policy referecning mechanism, where i shall include it),
where i should include the call, becaz i am afraid that it may not spoil the
whole policies parsed before.
I am try to run the code but if u have some help regarding the issue, it
would be really appreaciated.
with Best regards
Muhammad.
|