anyURIBag Function Description
Description
This function takes in n atomic anyURI values and returns a bag containing those values. This function is seldom used on its. It would be used in conjunction with another function e.g. anyURIIsIn.
anyURIBag belongs to the ALFA function reference's
Bag functions category. It maps to the XACML function identifier
urn:oasis:names:tc:xacml:1.0:function:anyURI-bag, takes n arguments and returns a value of type bag of anyURI.
| Property | Value |
|---|---|
| Category | Bag functions |
| # Arguments | n |
| Arguments |
|
| Return Value | bag of anyURI |
| Expressed As | pre-fix |
| Representation | ALFA short name |
| Allowed In Target | false |
| ALFA Shorthand | None |
| Commutative | true |
Example
rule anyURIBagExample{
permit
condition anyURIAtLeastOneMemberOf(requestedURL, anyURIBag("http://www.axiomatics.com":anyURI, "http://www.example.com":anyURI))
}
In this example, we use the anyURIBag function in conjunction with the anyURIAtLeastOneMemberOf function. The rule will return Permit if there is at least one value in the requestedURL attribute that is equal to either http://www.axiomatics.com or http://www.example.com.
Related Functions
Other functions in the Bag functions category: