Class AbstractEntityAttributeExactPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.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 StringThe 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 voidprotected booleanentityAttributeValueMatches(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.voidSets 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, setNameFormatMethods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefixMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.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:
doInitializein classAbstractEntityAttributePolicyRule- Throws:
ComponentInitializationException
-
entityAttributeValueMatches
Checks whether the given entity attribute's values match for particular implementations of this functor.- Specified by:
entityAttributeValueMatchesin classAbstractEntityAttributePolicyRule- Parameters:
entityAttributeValues- the entity attribute values- Returns:
- true if the value matches, false if not
-