Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change value to regex

...

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

Child

...

Elements12

None

Examples

Code Block
languagexml
titleSimple Profile Policy
<afp:PolicyRequirementRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" attributeID="uid"/>

...

Code Block
languagexml
titleSimple Matcher
<afp:AttributeRule attributeID="uid">
   <afp:PermitValueRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" />
</afp:AttributeRule>

...

Code Block
languagexml
titleCompound PolicyRule (deprecated)
<afp:PolicyRequirementRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$"/>

Apply this rule if any attribute contains a value which starts with hn

Code Block
languagexml
titleCompound Matcher (deprecated)
<afp:AttributeRule attributeID="email">
   <afp:PermitValueRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" attributeID="uid"/>
</afp:AttributeRule>

...