|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnbi.xmlsec.xacml.profile.rbac.RBACPolicyElement
nbi.xmlsec.xacml.profile.rbac.RBACPolicy
nbi.xmlsec.xacml.profile.rbac.RBACPolicySet
nbi.xmlsec.xacml.profile.rbac.RoleAssignmentPolicySet
This class implements a role assignment policy set according to the XACML
RBAC Profile. It administers role assigment policies, which may be
represented as a PolicySet
or parsed from a
PolicySet
representation.
NOTE: If a policyFinder is set, this method adds the policies of this set as
PolicyReference
objects to this policy set.
Otherwise, policies are added as Policy
objects.
Field Summary | |
(package private) static Logger |
logger
|
(package private) PolicyFinder |
policyFinder
|
Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicySet |
REPRESENT_POLICIES_AS_NONE, REPRESENT_POLICIES_AS_POLICY, REPRESENT_POLICIES_AS_POLICYREF |
Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicy |
elements, permitRule |
Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement |
|
Constructor Summary | |
RoleAssignmentPolicySet(PolicySet policySet)
Create an role assigment policy set from its PolicySet
representation. |
|
RoleAssignmentPolicySet(PolicySet policySet,
PolicyFinder finder)
Create an role assigment policy set from its PolicySet
representation. |
|
RoleAssignmentPolicySet(String domain,
String label)
Creates role assigment policy set from its identifier. |
|
RoleAssignmentPolicySet(URI id)
Creates role assigment policy set from its identifier. |
Method Summary | |
boolean |
add(Assignment element)
Adds the assignment to the element's related role assignment policy of this role assignment policy set. |
boolean |
add(RBACPolicyElement element)
If the element is an RoleAssignmentPolicy ,
the element is added to the set of elements. |
Set |
getAssignments()
Gets the Assignments of the RoleAssignmentPolicies of this RoleAssignmentPolicySet. |
Set |
getRoleAssignmentPolicies()
Gets the RoleAssignmentPolicies of this RoleAssignmentPolicySet. |
void |
parse(PolicyTreeElement element)
Parses a roleassignment policy set from its PolicySet
representation. |
void |
parse(Target target)
Parses the target of an PermissionPolicySet. |
boolean |
remove(Assignment element)
Removes the assignment from the role assignment policy of this role role assignment policy set. |
boolean |
remove(RBACPolicyElement element)
If the element is an RoleAssignmentPolicy ,
the element is removed from the set of elements. |
Assignment |
searchAssignment(String label)
Retrieves an assigment from an role assignment policy of this role assignment policy set. |
void |
setPolicyFinder(PolicyFinder policyFinder)
Sets policyFinder |
Methods inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicySet |
encode, getPolicyRepresentationType, parse, setPolicyRepresentationType, toPolicyRerence, toPolicyTreeElement |
Methods inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicy |
encode, equals, getElements, isPermitRule, parse, search, search, setPermitRule, toPolicyRerence, toPolicyTreeElement |
Methods inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement |
getIdentifier, getTarget, hashCode, setIdentifier, setIdentifier, setTarget, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static Logger logger
PolicyFinder policyFinder
Constructor Detail |
public RoleAssignmentPolicySet(String domain, String label)
REPRESENT_POLICIES_AS_POLICYREF
.
domain
- Identifier's domain.label
- Identifier's label.public RoleAssignmentPolicySet(URI id) throws ParsingException
REPRESENT_POLICIES_AS_POLICYREF
.
id
- Identifier's URI representation.public RoleAssignmentPolicySet(PolicySet policySet) throws ParsingException
PolicySet
representation. The first policy parsed determines the policy
representation type of the policy set.
policySet
- PolicySet
representation.public RoleAssignmentPolicySet(PolicySet policySet, PolicyFinder finder) throws ParsingException
PolicySet
representation. The first policy parsed determines the policy
representation type of the policy set.
policySet
- PolicySet
representation.Method Detail |
public void parse(Target target) throws ParsingException
parse
in class RBACPolicyElement
target
- The target to parse.
ParsingException
- Signals errors during the parsing process.RBACPolicyElement.parse(com.sun.xacml.Target)
public void parse(PolicyTreeElement element) throws ParsingException
PolicySet
representation. The first policy parsed determines the policy
representation type of the policy set.
parse
in class RBACPolicySet
element
- The policy set to parse.
ParsingException
- Indicates errors during the parsing process.public Assignment searchAssignment(String label)
label
- The name of the assignment to search for.
null
.RBACPolicy.search(Identifier).
public boolean add(RBACPolicyElement element)
RoleAssignmentPolicy
,
the element is added to the set of elements.
add
in class RBACPolicy
element
- The element to be added.
true
, if an role assignment Policy was
succesfully added, false
otherwise.RBACPolicyElement.add(RBACPolicyElement)
public boolean add(Assignment element)
element
- The assignment to add.
true
, if the element was succesfully added or
successfully updates an existing element, false
otherwise.RBACPolicy.remove(RBACPolicyElement).
public boolean remove(Assignment element)
element
- The assignment to remove.
true
, if the element was succesfully removed or
successfully updates an existing element, false
otherwise.RBACPolicy.remove(RBACPolicyElement).
public boolean remove(RBACPolicyElement element)
RoleAssignmentPolicy
,
the element is removed from the set of elements.
remove
in class RBACPolicy
element
- The element to remove.
true
, if an role assigment policy was succesfully
removed, false
otherwise.RBACPolicyElement.remove(RBACPolicyElement)
public void setPolicyFinder(PolicyFinder policyFinder)
policyFinder
- The policyFinder to set.public Set getAssignments()
public Set getRoleAssignmentPolicies()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |