ANTS v2.0 API

ants.core.security
Class Policy

java.lang.Object
  |
  +--ants.core.security.Policy
Direct Known Subclasses:
BasicPolicy

public abstract class Policy
extends java.lang.Object
implements java.io.Serializable

The abstract specification of a class that maps principals to permissions.

Author:
Andrew Whitaker
See Also:
Serialized Form

Constructor Summary
Policy()
           
 
Method Summary
abstract  void addPermission(Principal who, Permission what)
           
abstract  boolean hasPermission(Principal who, Permission what)
           
abstract  void removePermission(Principal who, Permission what)
           
abstract  void removePrincipal(Principal who)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Policy

public Policy()
Method Detail

hasPermission

public abstract boolean hasPermission(Principal who,
                                      Permission what)

addPermission

public abstract void addPermission(Principal who,
                                   Permission what)

removePermission

public abstract void removePermission(Principal who,
                                      Permission what)

removePrincipal

public abstract void removePrincipal(Principal who)

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/