I have a set of resources. Each resource has its own security policy which is a combination of security rules.
For creating these policies in XACML, what can I use : the element Policy
or the element PolicySet
?
For example :
- rule1: to read resource1 the user must have an administrator role
- rule 2: to write on resource 2 the user must have an e-mail adresse from domain @yahoo.com
- rule3: to read resource 3 the user must be from hospital Saint George
- rule 4: to write on resource 1 user must have a nurse role.
In that case : should I create a policy element for resource1 and another one for resource 2 and so on, all that under a PolicySet element? Or should I create a policy element under that security rule 1 and 2 and so on ?