issrg.pba.rbac
Class DecisionRecord

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

public class DecisionRecord
extends java.lang.Object

This is the class for holding a granted decision record. It will be put into the retained ADI. it contains 6 fields: userID, creds, action, target, contextInstance, dateTime.

Version:
0.1
Author:
W. Xu

Constructor Summary
DecisionRecord()
           
DecisionRecord(java.lang.String userID, Credentials creds, java.lang.String action, java.lang.String target, java.lang.String contextInstance, java.util.Date dateTime)
          This constructor builds the object out of userID, creds, action, target, contextInstance, dateTime.
 
Method Summary
 java.lang.String getAction()
          This method returns the Action.
 java.lang.String getContextInstance()
          This method returns the context instance in String format.
 Credentials getCreds()
          This method returns the Credentials.
 java.util.Date getDateTime()
          This method returns the DateTime as a Date class.
 java.lang.String getTarget()
          This method returns the Target.
 java.lang.String getUserID()
          This method returns the userDI.
 java.lang.String toString()
          This method returns a string of contextInstance, userID, target, action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecisionRecord

public DecisionRecord()

DecisionRecord

public DecisionRecord(java.lang.String userID,
                      Credentials creds,
                      java.lang.String action,
                      java.lang.String target,
                      java.lang.String contextInstance,
                      java.util.Date dateTime)
This constructor builds the object out of userID, creds, action, target, contextInstance, dateTime.

Method Detail

getUserID

public java.lang.String getUserID()
This method returns the userDI.


getCreds

public Credentials getCreds()
This method returns the Credentials.


getAction

public java.lang.String getAction()
This method returns the Action.


getTarget

public java.lang.String getTarget()
This method returns the Target.


getContextInstance

public java.lang.String getContextInstance()
This method returns the context instance in String format.


getDateTime

public java.util.Date getDateTime()
This method returns the DateTime as a Date class.


toString

public java.lang.String toString()
This method returns a string of contextInstance, userID, target, action.

Overrides:
toString in class java.lang.Object