public class WrapperPolicyFinderModule extends PolicyFinderModule
| Modifier and Type | Field and Description |
|---|---|
protected PolicyFinder |
policyFinder |
| Constructor and Description |
|---|
WrapperPolicyFinderModule(Policy policy) |
| Modifier and Type | Method and Description |
|---|---|
PolicyFinderResult |
findPolicy(EvaluationCtx evaluationCtx)
Tries to find one and only one matching policy given the request
represented by the context data.
|
PolicyFinderResult |
findPolicy(URI arg0,
int arg1,
VersionConstraints arg2,
PolicyMetaData arg3)
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 policyFinder)
Initializes this module for use by the given finder.
|
boolean |
isRequestSupported()
Returns true if the module supports finding policies based on a
request (ie, target matching).
|
getIdentifier, invalidateCache, isIdReferenceSupportedprotected PolicyFinder policyFinder
public WrapperPolicyFinderModule(Policy policy)
public void init(PolicyFinder policyFinder)
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.init in class PolicyFinderModulepolicyFinder - the PolicyFinder using this modulePolicyFinderModule#init(com.sun.xacml.finder.PolicyFinder)public PolicyFinderResult findPolicy(EvaluationCtx evaluationCtx)
PolicyFinderModulefindPolicy in class PolicyFinderModuleevaluationCtx - the representation of the requestPolicyFinderModule#findPolicy(com.sun.xacml.EvaluationCtx)public PolicyFinderResult findPolicy(URI arg0, int arg1, VersionConstraints arg2, PolicyMetaData arg3)
PolicyFinderModulefindPolicy in class PolicyFinderModulearg0 - an identifier specifying some policyarg1 - type of reference (policy or policySet) as identified by
the fields in PolicyReferencearg2 - 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)arg3 - the meta-data from the parent policy, which
provides XACML version, factories, etc.PolicyFinderModule#findPolicy(java.net.URI, int,
com.sun.xacml.VersionConstraints, com.sun.xacml.PolicyMetaData)public boolean isRequestSupported()
PolicyFinderModuleisRequestSupported in class PolicyFinderModulePolicyFinderModule.isRequestSupported()Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.