base64BinaryBagSize Function Description

Description

This function allows users to measure the size of a bag of type base64Binary. Being able to determine the bag's size can help with use cases such as enforcing there be at least 1 value, for instance at least one citizenship.

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

Property Value
Category Bag functions
# Arguments 1
Arguments
  • a bag of type base64Binary 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

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