Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

The ValueRegex (basic:AttributeValueRegex prior prior to 3V3.2.0) type matches attributes values against the supplied Java Regular Expression.

Confusingly, theValueRegex type can be a Matcher or a PolicyRequirement.

...

Schema Name

The ValueRegex  type is defined by the urn:mace:shibboleth:2.0:afp schema namespace, which can be located at http://shibboleth.net/schema/idp/shibboleth-afp.xsd.

Attributes

Two attributes may be specified:

NameTypeDefaultDescription
attributeID StringnoneIf this is present, then this is a PolicyRule returning true if the corresponding attribute of this ID exists and contains a value with that matches.
If this is not present, then this is a Matcher returning any value that matchmatches, and the empty set otherwise.
regexJava RegExpPatternrequiredThe regular expression to match against

Child

...

Elements

None

Examples

Code Block
languagexml
titleSimple Profile Policy
<PolicyRequirementRule xsi:type="ValueRegex" regex="^hn.*$" attributeID="uid"/>

...