edu.stanford.rt.credential
Class DelegationRole

java.lang.Object
  |
  +--edu.stanford.rt.credential.DelegationRole
All Implemented Interfaces:
PrincipalExpression, java.io.Serializable

public class DelegationRole
extends java.lang.Object
implements PrincipalExpression

Author:
Ninghui Li, Sandra Qiu
Implementation of SimpleDelegation element. A DelegationRole has a required part delegateTo and an optional part control.
See Also:
Serialized Form

Field Summary
private  Role control
          depth of the allowed further delegation.
private  PrincipalExpression delegateTo
          to whom to delegate the authority.
 
Constructor Summary
DelegationRole(PrincipalExpression delegateTo, Role control)
          Constructor for DelegationRole.
 
Method Summary
 java.lang.String toString(java.lang.String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegateTo

private PrincipalExpression delegateTo
to whom to delegate the authority.


control

private Role control
depth of the allowed further delegation.

Constructor Detail

DelegationRole

public DelegationRole(PrincipalExpression delegateTo,
                      Role control)
Constructor for DelegationRole.

Method Detail

toString

public java.lang.String toString(java.lang.String indent)
Specified by:
toString in interface PrincipalExpression