Class AbstractEntityAttributeExactPolicyRule
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.saml.impl.AbstractEntityAttributePolicyRule
net.shibboleth.idp.attribute.filter.policyrule.saml.impl.AbstractEntityAttributeExactPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
IssuerEntityAttributeExactPolicyRule
,ProxiedRequesterEntityAttributeExactPolicyRule
,RequesterEntityAttributeExactPolicyRule
public abstract class AbstractEntityAttributeExactPolicyRule
extends AbstractEntityAttributePolicyRule
Matcher that checks, via an exact match, for an entity attribute with a given value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The value of the entity attribute the entity must have.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
protected boolean
entityAttributeValueMatches
(Set<String> entityAttributeValues) Checks whether the given entity attribute's values match for particular implementations of this functor.getValue()
Gets the value of the entity attribute the entity must have.void
Sets the value of the entity attribute the entity must have.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.saml.impl.AbstractEntityAttributePolicyRule
getAttributeName, getEntityMetadata, getIgnoreUnmappedEntityAttributes, getNameFormat, matches, setAttributeName, setIgnoreUnmappedEntityAttributes, setNameFormat
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
-
value
The value of the entity attribute the entity must have.
-
-
Constructor Details
-
AbstractEntityAttributeExactPolicyRule
public AbstractEntityAttributeExactPolicyRule()
-
-
Method Details
-
getValue
Gets the value of the entity attribute the entity must have.- Returns:
- value of the entity attribute the entity must have
-
setValue
Sets the value of the entity attribute the entity must have.- Parameters:
attributeValue
- value of the entity attribute the entity must have
-
doInitialize
- Overrides:
doInitialize
in classAbstractEntityAttributePolicyRule
- Throws:
ComponentInitializationException
-
entityAttributeValueMatches
protected boolean entityAttributeValueMatches(@Nonnull @NotEmpty @NonnullElements Set<String> entityAttributeValues) Checks whether the given entity attribute's values match for particular implementations of this functor.- Specified by:
entityAttributeValueMatches
in classAbstractEntityAttributePolicyRule
- Parameters:
entityAttributeValues
- the entity attribute values- Returns:
- true if the value matches, false if not
-