...
Name | Type | Default | Description |
---|
attributeID | String | none | If 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 |
regex | Java RegExp | required | The regular expression to match against |
Child
...
Elements12
None
Examples
Code Block |
---|
language | xml |
---|
title | Simple Profile Policy |
---|
|
<afp:PolicyRequirementRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" attributeID="uid"/> |
...
Code Block |
---|
language | xml |
---|
title | Simple Matcher |
---|
|
<afp:AttributeRule attributeID="uid">
<afp:PermitValueRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" />
</afp:AttributeRule> |
...
Code Block |
---|
language | xml |
---|
title | Compound 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 |
---|
language | xml |
---|
title | Compound Matcher (deprecated) |
---|
|
<afp:AttributeRule attributeID="email">
<afp:PermitValueRule xsi:type="basic:AttributeValueRegex" valueregex="^hn.*$" attributeID="uid"/>
</afp:AttributeRule> |
...