public class PPSPolicySetFinderModule extends PolicySetFinderModule
Modifier and Type | Field and Description |
---|---|
protected List<Policy> |
policies |
protected List<PolicySet> |
policySets |
policyFinder
Constructor and Description |
---|
PPSPolicySetFinderModule() |
Modifier and Type | Method and Description |
---|---|
void |
add(Policy p) |
void |
add(PolicySet ps) |
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.
|
init, isIdReferenceSupported, isRequestSupported, set
getIdentifier, invalidateCache
public void add(PolicySet ps)
public void add(Policy p)
public PolicyFinderResult findPolicy(EvaluationCtx context)
PolicySetFinderModule
findPolicy
in class PolicySetFinderModule
context
- the evaluation contextpublic PolicyFinderResult findPolicy(URI idReference, int type, VersionConstraints constraints, PolicyMetaData parentMetaData)
PolicyFinderModule
findPolicy
in class PolicySetFinderModule
idReference
- an identifier specifying some policytype
- type of reference (policy or policySet) as identified by
the fields in PolicyReference
constraints
- 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.Copyright © 2023 JBoss by Red Hat. All rights reserved.