anyURIBagSize Function Description

Description

This function takes in a single parameter of type bag of anyURI and returns an integer representing the size or number of values in the bag. The bag may contain duplicate values and they will all be counted individually.

anyURIBagSize 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-size, takes 1 argument and returns a value of type integer.

Property Value
Category Bag functions
# Arguments 1
Arguments
  • a bag of type anyURI which size we want to determine.
Return Value integer
Expressed As pre-fix
Representation ALFA short name
Allowed In Target false
ALFA Shorthand None
Commutative false

Example

rule anyURIBagSizeExample{
    permit
    condition anyURIBagSize(requestedURL)==1
}

In this example access is permitted if the requestedURL attribute contains a single value.