base64BinaryUnion Function Description

Description

This function takes two or more arguments that are both a bag of base64Binary values. It returns a bag of base64Binary such that it contains all elements of all the argument bags. The function gets rid of duplicates, as determined by the equality functions.

base64BinaryUnion 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:base64Binary-union, takes 2 or more arguments and returns a value of type A bag of values of type base64Binary with no duplicates..

Property Value
Category Set functions
# Arguments 2 or more
Arguments
  • A bag of type base64Binary
  • A bag of type base64Binary
  • Optionally more bags of type base64Binary
Return Value A bag of values of type base64Binary with no duplicates.
Expressed As pre-fix
Representation ALFA short name
Allowed In Target false
ALFA Shorthand None
Commutative true

Example

/**
* Deny access if the payload is either in the blockedPayloads or UnsafePayloads
*/
rule base64BinaryUnionExample{
    deny
    condition base64BinaryIsIn(base64BinaryOneAndOnly(encodedMessage),base64BinaryUnion(blockedPayloads,unsafePayloads))
}

In this example, we use the base64BinaryUnion function in conjunction with base64BinaryIsIn to determine whether a single atomic value is in the union of 2 bags of values. This also shows how functions can be combined together in ALFA. The access will be denied if the encodedMessage is in either blockedPayloads or unsafePayloads.