1

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

例子:

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

1 回答 1

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."
}
于 2016-06-22T01:05:08.643 回答