Class ProfilePolicyRule
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.AbstractStringPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.filtercontext.impl.ProfilePolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
Compare the profile identifier for this resolution with the provided string.
- Since:
- 4.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.How to get to theProfileRequestContext
from theAttributeFilterContext
.Fields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the context location strategy we'll use.matches
(AttributeFilterContext filterContext) Compare the principal name for this resolution with the provided string.void
Get the context location strategy we'll use.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractStringPolicyRule
getMatchString, isCaseSensitive, isIgnoreCase, setCaseSensitive, setIgnoreCase, setMatchString, stringCompare
Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
doInitialize, 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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
profileContextStrategy
How to get to theProfileRequestContext
from theAttributeFilterContext
.
-
-
Constructor Details
-
ProfilePolicyRule
public ProfilePolicyRule()Constructor.
-
-
Method Details
-
getProfileContextStrategy
Set the context location strategy we'll use.- Returns:
- Returns the strategy.
-
setProfileContextStrategy
public void setProfileContextStrategy(Function<AttributeFilterContext, ProfileRequestContext> strategy) Get the context location strategy we'll use.- Parameters:
strategy
- what to set.
-
matches
Compare the principal name for this resolution with the provided string.- Parameters:
filterContext
- the context- Returns:
- whether it matches whether the rule holds
-