issrg.pba.rbac
Class RetainedADI

java.lang.Object
  extended by issrg.pba.rbac.RetainedADI

public class RetainedADI
extends java.lang.Object

This is the class for managing retained ADI when history based decision is needed. All successfull decisions are kept in this class in a Vector decisionHistoryVec.

Version:
0.1
Author:
W. Xu

Constructor Summary
RetainedADI()
          This constructor generates a new retained ADI object with empty dicisionHistoryVec.
RetainedADI(java.util.Vector<DecisionRecord> decisionVec)
          This constructor generates a new retained ADI object with dicisionVec as the decisionHisotryVec.
 
Method Summary
 void add(DecisionRecord dr)
          This method adds a new DecisionRecord into the decisionHistoryVec.
 void addAll(java.util.Vector<DecisionRecord> v)
          This method adds a new Vector of DecisionRecord into the decisionHistoryVec.
 java.util.Vector<DecisionRecord> getHistoryRecords(ContextNamePrincipal policyDN, ContextNamePrincipal instanceDN, java.lang.String userID)
          This method retrieves a vector of history decision records according to the policy contextname, instance contextname, and userID.
 void removeContext(ContextNamePrincipal policyDN, ContextNamePrincipal instanceDN)
          This method deletes all decision records from the retained ADI which are related to the instance contextname -- instanceDN according to the policy context.
 int size()
          This method returns the size of the decisionHistoryVec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetainedADI

public RetainedADI()
This constructor generates a new retained ADI object with empty dicisionHistoryVec.


RetainedADI

public RetainedADI(java.util.Vector<DecisionRecord> decisionVec)
This constructor generates a new retained ADI object with dicisionVec as the decisionHisotryVec.

Method Detail

add

public void add(DecisionRecord dr)
This method adds a new DecisionRecord into the decisionHistoryVec.


addAll

public void addAll(java.util.Vector<DecisionRecord> v)
This method adds a new Vector of DecisionRecord into the decisionHistoryVec.


size

public int size()
This method returns the size of the decisionHistoryVec.


getHistoryRecords

public java.util.Vector<DecisionRecord> getHistoryRecords(ContextNamePrincipal policyDN,
                                                          ContextNamePrincipal instanceDN,
                                                          java.lang.String userID)
This method retrieves a vector of history decision records according to the policy contextname, instance contextname, and userID.


removeContext

public void removeContext(ContextNamePrincipal policyDN,
                          ContextNamePrincipal instanceDN)
This method deletes all decision records from the retained ADI which are related to the instance contextname -- instanceDN according to the policy context.