|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement nbi.xmlsec.xacml.profile.rbac.RBACPolicy nbi.xmlsec.xacml.profile.rbac.RoleAssignmentPolicy
This class implements a role assignment policy according to the XACML RBAC
Profile. It administers subject-to-role assigments, which may be represented
as a Policy
or parsed from a Policy
representation.
Field Summary | |
(package private) static Logger |
logger
|
Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicy |
elements, permitRule |
Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement |
|
Constructor Summary | |
RoleAssignmentPolicy(Policy policy)
Create an Assigment instance from its Policy
representation. |
|
RoleAssignmentPolicy(PolicyReference policy)
Create an Assigment instance from its Policy
representation. |
|
RoleAssignmentPolicy(String domain,
String label)
Creates role assigment policy with its identifier. |
|
RoleAssignmentPolicy(URI id)
Creates role assigment policy with its identifier. |
Method Summary | |
boolean |
add(RBACPolicyElement element)
If the element is an Assignment , the element is added to the set of elements. |
Set |
getAssignments()
Gets the assignments of this role. |
void |
parse(PolicyTreeElement element)
Parses a role assignment policy from its Policy
representation. |
boolean |
remove(RBACPolicyElement element)
If the element is an Assignment , the element is removed from the set of elements. |
PolicyReference |
toPolicyReference()
Returns the PolicyRefence to this the role
assignment policy. |
PolicyTreeElement |
toPolicyTreeElement()
Returns the Policy representation of the role assignment
policy. |
Methods inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicy |
encode, encode, equals, getElements, isPermitRule, parse, search, search, setPermitRule, toPolicyRerence, toPolicyRerence, toPolicyTreeElement |
Methods inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement |
getIdentifier, getTarget, hashCode, parse, setIdentifier, setIdentifier, setTarget, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static Logger logger
Constructor Detail |
public RoleAssignmentPolicy(String domain, String label)
domain
- Identifier's domain.label
- Identifier's label.public RoleAssignmentPolicy(URI id) throws ParsingException
id
- Identifier's URI representation.public RoleAssignmentPolicy(Policy policy) throws ParsingException
Policy
representation.
policy
- Policy
representation.public RoleAssignmentPolicy(PolicyReference policy) throws ParsingException
Policy
representation.
policy
- Policy
representation.Method Detail |
public void parse(PolicyTreeElement element) throws ParsingException
Policy
representation.
parse
in class RBACPolicy
element
- The policy to parse.
ParsingException
- Indicates a malformed Policy
representation.public PolicyTreeElement toPolicyTreeElement()
Policy
representation of the role assignment
policy.
toPolicyTreeElement
in class RBACPolicy
Policy
representation.RBACPolicyElement.toPolicyTreeElement()
public PolicyReference toPolicyReference()
PolicyRefence
to this the role
assignment policy.
PolicyReference
.public boolean add(RBACPolicyElement element)
Assignment
, the element is added to the set of elements.
add
in class RBACPolicy
element
- The element to be added.
true
, if an assigment was succesfully added, false
otherwise.RBACPolicyElement.add(RBACPolicyElement)
public boolean remove(RBACPolicyElement element)
Assignment
, the element is removed from the set of elements.
remove
in class RBACPolicy
element
- The element to remove.
true
, if an assigment was succesfully removed, false
otherwise.RBACPolicyElement.remove(RBACPolicyElement)
public Set getAssignments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |