|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.xacml.sunxacml.finder.PolicyFinderModule
org.jboss.security.xacml.bridge.PolicySetFinderModule
public class PolicySetFinderModule
PolicyFinderModule for PolicySet
| Field Summary | |
|---|---|
protected PolicyFinder |
policyFinder
|
| Constructor Summary | |
|---|---|
PolicySetFinderModule()
|
|
PolicySetFinderModule(PolicySet policySet)
|
|
PolicySetFinderModule(PolicySet policySet,
List<AbstractPolicy> policies)
|
|
| Method Summary | |
|---|---|
PolicyFinderResult |
findPolicy(EvaluationCtx context)
Finds the applicable policy (if there is one) for the given context. |
PolicyFinderResult |
findPolicy(URI idReference,
int type,
VersionConstraints constraints,
PolicyMetaData parentMetaData)
Tries to find one and only one matching policy given the idReference If more than one policy is found, this is an error and must be reported as such. |
void |
init(PolicyFinder finder)
Initializes this module for use by the given finder. |
boolean |
isIdReferenceSupported()
Always returns true, since reference-based retrieval is supported. |
boolean |
isRequestSupported()
Returns true if the module supports finding policies based on a request (ie, target matching). |
void |
set(PolicySet ps,
List<AbstractPolicy> policies)
|
| Methods inherited from class org.jboss.security.xacml.sunxacml.finder.PolicyFinderModule |
|---|
getIdentifier, invalidateCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PolicyFinder policyFinder
| Constructor Detail |
|---|
public PolicySetFinderModule()
public PolicySetFinderModule(PolicySet policySet)
public PolicySetFinderModule(PolicySet policySet,
List<AbstractPolicy> policies)
| Method Detail |
|---|
public void init(PolicyFinder finder)
PolicyFinderModulePDP is initialized with a
PDPConfig containing the given PolicyFinder.
Because PolicyFinderModules usually need to parse
policies, and this requires knowing their PolicyFinder,
parsing is usually done at or after this point in the lifetime
of this module. This might also be a good time to reset any internal
caches or temporary data. Note that this method may be called more
than once in the lifetime of a module.
- Specified by:
init in class PolicyFinderModule
- Parameters:
finder - the PolicyFinder using this module
public PolicyFinderResult findPolicy(EvaluationCtx context)
findPolicy in class PolicyFinderModulecontext - the evaluation context
public PolicyFinderResult findPolicy(URI idReference,
int type,
VersionConstraints constraints,
PolicyMetaData parentMetaData)
PolicyFinderModule
findPolicy in class PolicyFinderModuleidReference - an identifier specifying some policytype - type of reference (policy or policySet) as identified by
the fields in PolicyReferenceconstraints - any optional constraints on the version of the
referenced policy (this will never be null, but
it may impose no constraints, and in fact will
never impose constraints when used from a pre-2.0
XACML policy)parentMetaData - the meta-data from the parent policy, which
provides XACML version, factories, etc.
public boolean isRequestSupported()
PolicyFinderModule
isRequestSupported in class PolicyFinderModulepublic boolean isIdReferenceSupported()
isIdReferenceSupported in class PolicyFinderModule
public void set(PolicySet ps,
List<AbstractPolicy> policies)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||