Class DirectionPolicyRule
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.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.impl.DirectionPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
General
PolicyRequirementRule
for testing the filtering direction.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AttributeFilterContext.Direction
Direction to match for a positive evaluation.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
Gets theAttributeFilterContext.Direction
to match for a positive evaluation.matches
(AttributeFilterContext filterContext) Evaluate what this rule means.void
Sets theAttributeFilterContext.Direction
to match for a positive evaluation.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefix
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, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
matchDirection
Direction to match for a positive evaluation.
-
-
Constructor Details
-
DirectionPolicyRule
public DirectionPolicyRule()
-
-
Method Details
-
getMatchDirection
Gets theAttributeFilterContext.Direction
to match for a positive evaluation.- Returns:
- direction to match
-
setMatchDirection
Sets theAttributeFilterContext.Direction
to match for a positive evaluation.- Parameters:
match
- match for a positive evaluation
-
doInitialize
- Overrides:
doInitialize
in classAbstractPolicyRule
- Throws:
ComponentInitializationException
-
matches
Evaluate what this rule means.- Parameters:
filterContext
- the context.- Returns:
- whether the rule holds
-