issrg.pba.rbac
Class PolicyFinder

java.lang.Object
  extended byissrg.pba.rbac.PolicyFinder
Direct Known Subclasses:
SimplePERMISACPolicyFinder, SimplePERMISPolicyFinder

public abstract class PolicyFinder
extends java.lang.Object

This is an abstract class that is designed for the PermisRBAC class to retrieve policies from different formats. It defines the way of retrieving policies, as well as providing some basic implementation of all the sucessive SubClass.

Author:
Gansen

Field Summary
protected  AccessPolicy accessPolicy
          This is the access policy object.
protected  AllocationPolicy allocationPolicy
          This is the allocation policy object
protected  MSoDPolicySet msodPolicySet
           
protected  PolicyParser parsedPolicy
          This is the parsed form of the loaded policy
protected  java.lang.String policyOID
           
protected  AuthTokenRepository Repository
          This is the Authorisation token repository that keeps the policy
protected  SAWSServer sawsServer
           
protected  SignatureVerifier sv
          This is the signature verifier that verifies the signature over the policy
protected  AuthTokenParser tokenParser
          This is the authorisation token parser that is used to parse the authorisation tokens
 
Constructor Summary
PolicyFinder()
           
 
Method Summary
 AccessPolicy getAccessPolicy()
          This method returns the access policy.
 AllocationPolicy getAllocationPolicy()
          This method returns the allocation policy.
 MSoDPolicySet getMSoDPolicy()
          This method returns the access policy. added for MSoD
 PolicyParser getParsedPolicy()
          This method returns the object that is the parsed form of the loaded policy
 java.lang.String getPolicyOID()
           
 AuthTokenRepository getRepository()
          This method retrieves the repository object.
 SignatureVerifier getSV()
          This method retrieve the signature verifier object.
static java.lang.String removeSystemTag(java.lang.String xml)
          This method does simplistic XML policy pre-processing to remove a <!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Repository

protected AuthTokenRepository Repository
This is the Authorisation token repository that keeps the policy


sv

protected SignatureVerifier sv
This is the signature verifier that verifies the signature over the policy


parsedPolicy

protected PolicyParser parsedPolicy
This is the parsed form of the loaded policy


tokenParser

protected AuthTokenParser tokenParser
This is the authorisation token parser that is used to parse the authorisation tokens


allocationPolicy

protected AllocationPolicy allocationPolicy
This is the allocation policy object


accessPolicy

protected AccessPolicy accessPolicy
This is the access policy object.


msodPolicySet

protected MSoDPolicySet msodPolicySet

sawsServer

protected SAWSServer sawsServer

policyOID

protected java.lang.String policyOID
Constructor Detail

PolicyFinder

public PolicyFinder()
Method Detail

getParsedPolicy

public PolicyParser getParsedPolicy()
This method returns the object that is the parsed form of the loaded policy


getAllocationPolicy

public AllocationPolicy getAllocationPolicy()
This method returns the allocation policy.


getAccessPolicy

public AccessPolicy getAccessPolicy()
This method returns the access policy.


getMSoDPolicy

public MSoDPolicySet getMSoDPolicy()
This method returns the access policy. added for MSoD


getRepository

public AuthTokenRepository getRepository()
This method retrieves the repository object.


getSV

public SignatureVerifier getSV()
This method retrieve the signature verifier object.


getPolicyOID

public java.lang.String getPolicyOID()

removeSystemTag

public static java.lang.String removeSystemTag(java.lang.String xml)
This method does simplistic XML policy pre-processing to remove a <!DOCTYPE SYSTEM> tag from it. The tag is intended to point to the DTD location, and the XML parsers attempt to validate the XML policy using it. Note that the location is very often machine-specific and only confuses the XML parser. It is safe to remove the pointer to the DTD, since the XMLPolicyParser validates the semantics of the XML.

Parameters:
xml - - the XML to remove the SYSTEM tag from
Returns:
the XML without the SYSTEM tag in it