XACML ALFA - 如何将一个Bag的元素作为字符串读取并连接它

时间:2016-06-22 00:19:51

标签: authorization access-control xacml abac alfa

想知道如何将两个包连接成一个字符串,每个包含一个数据元素。 stringConcatenate函数只接受字符串数据类型,而从PIP模块返回的数据值是bag类型。 ALFA中是否有字符串到包转换?扫描版本3规格我没有找到反函数,比如读取转换为字符串的包的第一个元素。是否有可用于XACML版本3和ALFA的解决方案来运行此数据类型调整并连接两个数据值?

示例:

obligations = "Invited to Work Request Policy - The user :{" 
        notificationRecipient = stringConcatenate(subjectAttributes.redSerialNumber,subjectAttributes.employeeCountryCode)
        debugMsg2 = "}, was invited to XYZ."

1 个答案:

答案 0 :(得分:1)

以下声明已在ALFA中验证:

obligation displayAttributes { 
    obligations = "Invited to Work Request Policy - The user :{" 
    notificationRecipient = stringConcatenate(stringOneAndOnly(subjectAttributes.redSerialNumber),stringOneAndOnly(subjectAttributes.employeeCountryCode))
    debugMsg2 = "}, was invited to XYZ."
}
相关问题