Skip to main content

Attribute declarations

Attributes need to be declared to associate a short name with the URI ID, the attribute type, and the category. The type is identified using its short name.

attribute subjectId {
id = "urn:oasis:names:tc:xacml:1.0:subject:subject-id"
type = string
category = subjectCat
}

When a new file is saved with the .alfa file extension, a supporting file called standard-attributes.alfa is copied to the currently open project folder, unless it already exists. The standard-attributes.alfa file contains declarations for standard XACML attributes. You would typically define your required attributes in your own namespace.