edu.nyu.cs.pdsg.drbac
Class ConstrainedRoleSet

java.lang.Object
  extended byedu.nyu.cs.pdsg.drbac.ConstrainedRoleSet
All Implemented Interfaces:
java.io.Serializable

public class ConstrainedRoleSet
extends java.lang.Object
implements java.io.Serializable

A set of AttributeSets. Used internally by searches to keep track of what roles can be reached from the source object and what AttributeSets are involved therein.

See Also:
Serialized Form

Field Summary
protected  java.util.HashMap roleSet
           
 
Constructor Summary
ConstrainedRoleSet()
          Initialize an empty ConstrainedRoleSet
ConstrainedRoleSet(ConstrainedRoleSet initVal)
          Copy constructor
 
Method Summary
 void add(Role role, AttributeSet attributeSet)
          Adds an attributeSet to this set
 AttributeSets add(Role role, AttributeSets attributeSets)
          Add a set of attributes to this ConstrainedRoleSet
 boolean containsKey(Role r)
          Check if a role can be reached
 AttributeSets get(Role role)
          Get the attributes accumulated over all discovered paths to the given role
 java.util.Iterator iterator()
           
 boolean subsumes(Role role, AttributeSet sas)
          See if the attributes contained with in are at least equivalent to a given constraint set
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roleSet

protected java.util.HashMap roleSet
Constructor Detail

ConstrainedRoleSet

public ConstrainedRoleSet()
Initialize an empty ConstrainedRoleSet


ConstrainedRoleSet

public ConstrainedRoleSet(ConstrainedRoleSet initVal)
Copy constructor

Method Detail

containsKey

public boolean containsKey(Role r)
Check if a role can be reached

Parameters:
r - the role in question
Returns:
true if the role can be reached

toString

public java.lang.String toString()
Returns:
a human readable representation of this ConstrainedRoleSet

iterator

public java.util.Iterator iterator()
Returns:
Map.entry instances mapping a role to an AttributeSets object

add

public AttributeSets add(Role role,
                         AttributeSets attributeSets)
Add a set of attributes to this ConstrainedRoleSet

Parameters:
role - the Role associated with the AttributeSet
attributeSets - the best possible sets of attributes that can be reached by going from the subject to this role

add

public void add(Role role,
                AttributeSet attributeSet)
Adds an attributeSet to this set

Parameters:
role - the Role that bas been reached
attributeSet - the set that contains the accumulated attributes

get

public AttributeSets get(Role role)
Get the attributes accumulated over all discovered paths to the given role

Parameters:
role - the role in question
Returns:
the attributes accumulated

subsumes

public boolean subsumes(Role role,
                        AttributeSet sas)
See if the attributes contained with in are at least equivalent to a given constraint set

Parameters:
role - the Role in question
sas - the constraint set
Returns:
true if there is an attribute set listed under the given role athat satisfies the constraint set


Copyright (c) 2002-2003 New York University RLAB