Class NotPolicyRule
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.NotPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
@ThreadSafe
public final class NotPolicyRule
extends AbstractIdentifiableInitializableComponent
implements PolicyRequirementRule
PolicyRequirementRule
that implements the negation of a matcher.
if FAIL then FAIL else if TRUE then FALSE else TRUE
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
FieldsFields 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
Get the matcher that is being negated.matches
(AttributeFilterContext filterContext) Evaluate what this rule means.void
Set the attribute value matcher to be negated.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
-
Field Details
-
negatedRule
The matcher we are negating.
-
-
Constructor Details
-
NotPolicyRule
public NotPolicyRule()
-
-
Method Details
-
setNegation
Set the attribute value matcher to be negated.- Parameters:
rule
- attribute value matcher to be negated
-
getNegatedRule
Get the matcher that is being negated.- Returns:
- matcher that is being negated
-
doInitialize
- Overrides:
doInitialize
in classAbstractIdentifiedInitializableComponent
- Throws:
ComponentInitializationException
-
matches
Evaluate what this rule means.- Specified by:
matches
in interfacePolicyRequirementRule
- Parameters:
filterContext
- the context.- Returns:
- whether the rule holds
-
toString
-