issrg.pba.rbac.xmlpolicy
Class XMLPolicyParser.SOAPolicyNode
java.lang.Object
issrg.pba.rbac.xmlpolicy.PolicyXMLNode
issrg.pba.rbac.xmlpolicy.XMLPolicyParser.SOAPolicyNode
- Enclosing class:
- XMLPolicyParser
public class XMLPolicyParser.SOAPolicyNode
- extends PolicyXMLNode
This class implements the SOAPolicy XML node. It holds an index of all
declared SOA ids, and their LDAP DNs can be retrieved by the SOA ID.
- Version:
- 1.0
- Author:
- A Otenko
Constructor Summary |
XMLPolicyParser.SOAPolicyNode(org.xml.sax.Attributes attrs)
This constructor builds a SOAPolicyNode using a set of attributes of
the XML element. |
Method Summary |
void |
construct()
This method checks that all the SOA definitions are semantically
correct. |
java.security.Principal |
getSOA(java.lang.String id)
This method returns the SOA for the given ID. |
java.util.Map |
getSOAs()
This method returns the list of SOAs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLPolicyParser.SOAPolicyNode
public XMLPolicyParser.SOAPolicyNode(org.xml.sax.Attributes attrs)
- This constructor builds a SOAPolicyNode using a set of attributes of
the XML element. It sets the soaPolicy of the XMLPolicyParser, so
that it can be found by other policies.
- Parameters:
attrs
- - the attributes of the XML element.
construct
public void construct()
throws PolicyParsingException
- This method checks that all the SOA definitions are semantically
correct. In particular, it checks that the URL of the SOA can be
interpreted, that the LDAP DN of the SOA is a valid Distinguished
Name and that the IDs of the SOAs are unique throughout this policy.
- Overrides:
construct
in class PolicyXMLNode
- Throws:
PolicyParsingException
- if any syntax or semantics error occurred
getSOA
public java.security.Principal getSOA(java.lang.String id)
- This method returns the SOA for the given ID. It returns null, if no
such ID
has been defined.
getSOAs
public java.util.Map getSOAs()
- This method returns the list of SOAs
- Returns:
- a map that store that maps from soas' id to soas' DNs