issrg.pba.rbac
Class PolicyFinder

java.lang.Object
  extended by issrg.pba.rbac.PolicyFinder
Direct Known Subclasses:
SimplePERMISACPolicyFinder, SimplePERMISPolicyFinder, SimplePushedPolicyFinder

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  AuthzTokenRepository authzTokenRepository
          This is the Authorisation token repository that keeps the policy
protected  java.lang.String filepath
           
protected  MSoDPolicySet msodPolicySet
           
protected  PolicyParser parsedPolicy
          This is the parsed form of the loaded policy
protected  java.lang.String policyOID
           
protected  int satLevel
           
protected  SAWSServer sawsServer
           
protected  java.security.Principal soa
          The SOA of the policy.
protected  SignatureVerifier sv
          This is the signature verifier that verifies the signature over the policy
protected  AuthzTokenParser 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.
 java.lang.String getfilepath()
           
 MSoDPolicySet getMSoDPolicy()
          This method returns the access policy.
 PolicyParser getParsedPolicy()
          This method returns the object that is the parsed form of the loaded policy
 java.lang.String getPolicyOID()
           
 AuthzTokenRepository getRepository()
          This method retrieves the repository object.
 int getSATLevel()
           
 SAWSServer getSAWSServer()
           
 java.security.Principal getSOA()
          Returns the Source of Authority for this PolicyFinder 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 <!DOCTYPE SYSTEM> tag from it.
 void SAWSCloseLog()
           
 void setSV(SignatureVerifier svIn)
          This method set the signature verifier object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authzTokenRepository

protected AuthzTokenRepository authzTokenRepository
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 AuthzTokenParser 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

soa

protected java.security.Principal soa
The SOA of the policy.


sawsServer

protected SAWSServer sawsServer

satLevel

protected int satLevel

filepath

protected java.lang.String filepath

policyOID

protected java.lang.String policyOID
Constructor Detail

PolicyFinder

public PolicyFinder()
Method Detail

getSATLevel

public int getSATLevel()

getSAWSServer

public SAWSServer getSAWSServer()

getSOA

public java.security.Principal getSOA()
Returns the Source of Authority for this PolicyFinder object.

Returns:
a Principal representing the Source of Authority.

getfilepath

public java.lang.String getfilepath()

SAWSCloseLog

public void SAWSCloseLog()

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 AuthzTokenRepository getRepository()
This method retrieves the repository object.


getSV

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


setSV

public void setSV(SignatureVerifier svIn)
This method set 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