anyURIIntersection Function Description

Description

This function takes in two parameters of type bag of anyURI and returns a bag of anyURI values such that it contains only elements that are common between the two bags.

anyURIIntersection belongs to the ALFA function reference's Set functions category. It maps to the XACML function identifier urn:oasis:names:tc:xacml:1.0:function:anyURI-intersection, takes 2 arguments and returns a value of type bag of anyURI.

Property Value
Category Set functions
# Arguments 2
Arguments
  • 2 bags of anyURI values
Return Value bag of anyURI
Expressed As pre-fix
Representation ALFA short name
Allowed In Target false
ALFA Shorthand None
Commutative true

Example

/**
 * Permit if the intersection of requestedURL and allowedURL contains values i.e. if the
 * size of the bag resulting from the intersection is greater than 0 strictly.
 */
rule anyURIIntersectionExample{
    permit
    condition anyURIBagSize(anyURIIntersection(requestedURL,allowedURL))>0
}

Permit if the intersection of requestedURL and allowedURL contains values i.e. if the size of the bag resulting from the intersection is greater than 0 strictly.