Class AndPolicyRule
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.AndPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
,UnmodifiableComponent
PolicyRequirementRule
that implements the conjunction of Policy Rules. That
is to say PolicyRequirementRule.Tristate.TRUE
if every 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/false 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 if, and only if, TRUE is returned by every 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
-
AndPolicyRule
public AndPolicyRule()
-
-
Method Details
-
matches
A given rule is considered to have matched if, and only if, TRUE is returned by every composed rule. Evaluate what this rule means.- Parameters:
filterContext
- the context.- Returns:
- whether the rule holds
-
doInitialize
- Overrides:
doInitialize
in classAbstractComposedPolicyRule
- Throws:
ComponentInitializationException
-