Class AbstractEntityAttributeRegexPolicyRule
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.AbstractEntityAttributeRegexPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
IssuerEntityAttributeRegexPolicyRule,ProxiedRequesterEntityAttributeRegexPolicyRule,RequesterEntityAttributeRegexPolicyRule
public abstract class AbstractEntityAttributeRegexPolicyRule
extends AbstractEntityAttributePolicyRule
Matcher functor that checks entity attribute values via matching against a regular expression.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PatternThe 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.Gets the value of the entity attribute the entity must have.voidsetValueRegex(Pattern attributeValueRegex) 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, 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
-
valueRegex
The value of the entity attribute the entity must have.
-
-
Constructor Details
-
AbstractEntityAttributeRegexPolicyRule
public AbstractEntityAttributeRegexPolicyRule()
-
-
Method Details
-
getValueRegex
Gets the value of the entity attribute the entity must have.- Returns:
- value of the entity attribute the entity must have
-
setValueRegex
Sets the value of the entity attribute the entity must have.- Parameters:
attributeValueRegex- 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
-