Class OrPolicyRule
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.logic.impl.AbstractComposedPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.logic.impl.OrPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
,UnmodifiableComponent
PolicyRequirementRule
that implements the disjunction of Policy Rules. That
is to say PolicyRequirementRule.Tristate.TRUE
if any rule returns PolicyRequirementRule.Tristate.TRUE
,
PolicyRequirementRule.Tristate.FAIL
as soon as a rule returns
PolicyRequirementRule.Tristate.FAIL
, and
PolicyRequirementRule.Tristate.FALSE
otherwise.
The standard "fail/succeed fast" optimization is implemented.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
Fields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
matches
(AttributeFilterContext filterContext) A given rule is considered to have matched as soon as TRUE is returned by any composed rule.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.logic.impl.AbstractComposedPolicyRule
getComposedRules, setSubsidiaries, toString
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Constructor Details
-
OrPolicyRule
public OrPolicyRule()
-
-
Method Details
-
matches
A given rule is considered to have matched as soon as TRUE is returned by any composed rule. It is considered to have failed as soon as FAIL is returned by any composed rule. Evaluate what this rule means.- Parameters:
filterContext
- the context.- Returns:
- whether the rule holds
-
doInitialize
- Overrides:
doInitialize
in classAbstractComposedPolicyRule
- Throws:
ComponentInitializationException
-