All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.server.realm.ResourceManager

java.lang.Object
   |
   +----com.sun.server.realm.ResourceManager

public class ResourceManager
extends Object

Constructor Index

 o ResourceManager()
Construct a realm configuration manager.

Method Index

 o getProtectedResources()
return an enumeration of all the objects that are protected.
 o getProtection(Object)
get the Guard object that protexts the
 o isProtected(Object)
return whether or not a resrouce is protected
 o protect(Object, Guard)
Protect the resource object using the passed guard.
 o unprotect(Object)
Deletes the guard for the resource

Constructors

 o ResourceManager
 public ResourceManager()
Construct a realm configuration manager.

Methods

 o protect
 public synchronized void protect(Object res,
                                  Guard guard)
Protect the resource object using the passed guard.

Parameters:
resource - the object being protected
guard - the object that identifies the protection parameters for this resource.
 o unprotect
 public synchronized void unprotect(Object res)
Deletes the guard for the resource

Parameters:
resource - the object that must no longer be protected
 o getProtection
 public Guard getProtection(Object resource)
get the Guard object that protexts the

Parameters:
resource - the object that is being guarded.
Returns:
the ProtectionAttributes object that guards this object.
 o getProtectedResources
 public synchronized Enumeration getProtectedResources()
return an enumeration of all the objects that are protected.

Returns:
a list of the objects that are protected.
 o isProtected
 public synchronized boolean isProtected(Object resource)
return whether or not a resrouce is protected

Returns:
true if the resource is protected - false if not.

All Packages  Class Hierarchy  This Package  Previous  Next  Index