issrg.dis
Class DISCore.DepthsCreds

java.lang.Object
  extended by issrg.dis.DISCore.DepthsCreds
Enclosing class:
DISCore

public class DISCore.DepthsCreds
extends java.lang.Object

This class is used for storing credentials and delegation depths before and during the checking/constraining process


Constructor Summary
DISCore.DepthsCreds()
          Creates a new instance of Parameters.
 
Method Summary
 Credentials getCreds1()
          This method returns the credentials from the resquest or after constraining with requestor's policy
 Credentials getCreds2()
          This method returns the credentials after constraining with DIS's policy
 int getDepth1()
          This method returns the delegation depth from the resquest or after constraining with requestor's policy
 int getDepth2()
          This method returns the delegation depth after constraining with the DIS's policy
 void setCreds1(Credentials creds)
          This function sets the credentials before the checking/constraning process
 void setCreds2(Credentials creds)
          This function sets the credentials during the checking/constraning process
 void setDepth1(int i)
          This function sets the delegation depth before the checking/constraining process
 void setDepth2(int i)
          This function sets the delegation depth during the checking/constraining process
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DISCore.DepthsCreds

public DISCore.DepthsCreds()
Creates a new instance of Parameters.

Method Detail

setDepth1

public void setDepth1(int i)
This function sets the delegation depth before the checking/constraining process

Parameters:
i - is the delegation depth going to be set

setDepth2

public void setDepth2(int i)
This function sets the delegation depth during the checking/constraining process

Parameters:
i - is the delegation depth going to be set

setCreds1

public void setCreds1(Credentials creds)
This function sets the credentials before the checking/constraning process

Parameters:
creds - is the credentials going to be set

setCreds2

public void setCreds2(Credentials creds)
This function sets the credentials during the checking/constraning process

Parameters:
creds - is the credentials going to be set

getDepth1

public int getDepth1()
This method returns the delegation depth from the resquest or after constraining with requestor's policy

Returns:
an integer, which is the delegation depth

getDepth2

public int getDepth2()
This method returns the delegation depth after constraining with the DIS's policy

Returns:
an integer, which is the delegation depth

getCreds1

public Credentials getCreds1()
This method returns the credentials from the resquest or after constraining with requestor's policy

Returns:
a credentials

getCreds2

public Credentials getCreds2()
This method returns the credentials after constraining with DIS's policy

Returns:
a credentials

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object