|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.xmlpolicy.PolicyXMLNode issrg.pba.rbac.xmlpolicy.XMLPolicyParser.RoleAssignmentPolicyNode
public class XMLPolicyParser.RoleAssignmentPolicyNode
This node implements the RoleAssignmentPolicy XML node. It is intelligent enough to walk through its children and retrieve all the information to build an index of AssignmentRule vectors by SOA DNs.
Field Summary | |
---|---|
static int |
ABSOLUTE_VALIDITY_NODE_SEQUENCE
|
static int |
AGE_VALIDITY_NODE_SEQUENCE
|
static int |
DELEGATE_NODE_SEQUENCE
|
static int |
MAXIMUM_VALIDITY_NODE_SEQUENCE
|
static int |
MINIMUM_VALIDITY_NODE_SEQUENCE
|
static int |
ROLE_LIST_NODE_SEQUENCE
|
protected java.util.Map |
rules
This is where the final rules are stored, indexed by SOA DN. |
static int |
SOA_NODE_SEQUENCE
|
static int |
SUBJECT_DOMAIN_NODE_SEQUENCE
These numbers are the position of the nodes under the RoleAssignment node. |
static int |
VALIDITY_NODE_SEQUENCE
|
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.RoleAssignmentPolicyNode(org.xml.sax.Attributes attrs)
This constructor builds a RoleAssingmentPolicyNode, given the attributes of the XML element. |
|
XMLPolicyParser.RoleAssignmentPolicyNode(XMLPolicyParser.DomainPolicyNode subjectPolicy,
XMLPolicyParser.SOAPolicyNode soaPolicy,
org.xml.sax.Attributes attrs)
This constructor builds the object from explicitly specified Subject Policy, SOA Policy and the attributes of the XML element. |
Method Summary | |
---|---|
void |
construct()
This method finishes the construction of the Role Assignment Policy. |
java.util.Map |
getRules()
This method returns the rules defined by the appropriate XML node. |
protected RelativeDate |
parseDateTime(java.lang.String s)
This routine parses the string in format ccyy-mm-ddThh:mm:ss and separates it into the integers. |
Methods inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
addChild, addString, getAttributes, getChildren, getName, getString, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SUBJECT_DOMAIN_NODE_SEQUENCE
public static final int ROLE_LIST_NODE_SEQUENCE
public static final int DELEGATE_NODE_SEQUENCE
public static final int SOA_NODE_SEQUENCE
public static final int VALIDITY_NODE_SEQUENCE
public static final int ABSOLUTE_VALIDITY_NODE_SEQUENCE
public static final int AGE_VALIDITY_NODE_SEQUENCE
public static final int MAXIMUM_VALIDITY_NODE_SEQUENCE
public static final int MINIMUM_VALIDITY_NODE_SEQUENCE
protected java.util.Map rules
Constructor Detail |
---|
public XMLPolicyParser.RoleAssignmentPolicyNode(org.xml.sax.Attributes attrs)
attrs
- - the attributes of this XML elementpublic XMLPolicyParser.RoleAssignmentPolicyNode(XMLPolicyParser.DomainPolicyNode subjectPolicy, XMLPolicyParser.SOAPolicyNode soaPolicy, org.xml.sax.Attributes attrs)
subjectPolicy
- - the Subject Policy to be usedsoaPolicy
- - the SOA Policy to be usedattrs
- - the attributes of this XML elementMethod Detail |
---|
public void construct() throws PolicyParsingException
construct
in class PolicyXMLNode
PolicyParsingException
- if any syntax or semantics error occurredpublic java.util.Map getRules()
protected RelativeDate parseDateTime(java.lang.String s)
Examples:
"00000002~73|1" is parsed as year 2, month 73, day 1. Note that the actual meaning depends on where this statement is used. If it is the Absolute date specification, then it is equal to "8-1-1" (73 months is the same as 6 more years and 1 month).
"2002-12-31T12:00:21:567" - the last term ":567" is ignored.
s
- is the string of format "ccyy-mm-ddThh:mm:ss" to parse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |