|
||||||||||
| 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.PermissionPolicySet
This class implements a permission policy set according to the XACML RBAC
Profile. It administers permission policies, which may be represented as a
PolicySetor parsed from a PolicySet
representation.
| Field Summary | |
(package private) static int |
DEFAULT_PERMIT_DENY
|
(package private) static int |
DEFAULT_PERMIT_INDETERMINATE
|
(package private) static int |
DEFAULT_PERMIT_NONE
|
(package private) static int |
DEFAULT_PERMIT_NOT_APPLICABLE
|
(package private) static int |
DEFAULT_PERMIT_PERMIT
|
(package private) int |
defaultPermit
|
| 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, logger, permitRule |
| Fields inherited from class nbi.xmlsec.xacml.profile.rbac.RBACPolicyElement |
|
| Constructor Summary | |
PermissionPolicySet(PolicyReference policySet)
Creates a permission policy set from its PolicyReference
representation. |
|
PermissionPolicySet(PolicySet policySet)
Creates a permission policy set from its PolicySet
representation. |
|
PermissionPolicySet(String domain,
String label)
Creates a permission policy set from its identifier. |
|
PermissionPolicySet(URI id)
Creates a permission policy set from its identifier. |
|
| Method Summary | |
boolean |
add(RBACPolicyElement element)
If the element is an PermissionPolicy, the
element is added to the set of elements. |
void |
parse(PolicyTreeElement element)
Parses a permission policy set from its PolicySet
representation. |
void |
parse(Target target)
Parses the target of an PermissionPolicySet. |
boolean |
remove(RBACPolicyElement element)
If the element is an PermissionPolicy, the
element is removed from the set of elements. |
| 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 final int DEFAULT_PERMIT_NONE
static final int DEFAULT_PERMIT_PERMIT
static final int DEFAULT_PERMIT_DENY
static final int DEFAULT_PERMIT_NOT_APPLICABLE
static final int DEFAULT_PERMIT_INDETERMINATE
int defaultPermit
| Constructor Detail |
public PermissionPolicySet(String domain,
String label)
REPRESENT_POLICIES_AS_POLICYREF.
domain - Identifier's domain.label - Identifier's label.
public PermissionPolicySet(URI id)
throws ParsingException
REPRESENT_POLICIES_AS_POLICYREF.
id - Identifier's URI representation.
public PermissionPolicySet(PolicySet policySet)
throws ParsingException
PolicySet
representation. The first policy parsed determines the policy
representation type of the policy set.
policySet - PolicySetrepresentation.
public PermissionPolicySet(PolicyReference policySet)
throws ParsingException
PolicyReference
representation. The first policy parsed determines the policy
representation type of the policy set.
policySet - PolicySetrepresentation.| Method Detail |
public boolean add(RBACPolicyElement element)
PermissionPolicy, the
element is added to the set of elements.
add in class RBACPolicyelement - The element to be added.
true, if the permission policy was succesfully
added, false otherwise.RBACPolicy.add(RBACPolicyElement)public boolean remove(RBACPolicyElement element)
PermissionPolicy, the
element is removed from the set of elements.
remove in class RBACPolicyelement - The element to remove.
true, if the permission policy was succesfully
removed, false otherwise.RBACPolicy.remove(RBACPolicyElement)
public void parse(Target target)
throws ParsingException
parse in class RBACPolicyElementtarget - 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 RBACPolicySetelement - The policy set to parse.
ParsingException - Indicates errors during the parsing process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||