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
-
ResourceManager()
- Construct a realm configuration manager.
-
getProtectedResources()
- return an enumeration of all the objects that are
protected.
-
getProtection(Object)
- get the Guard object that protexts the
-
isProtected(Object)
- return whether or not a resrouce is protected
-
protect(Object, Guard)
- Protect the resource object using the passed guard.
-
unprotect(Object)
- Deletes the guard for the resource
ResourceManager
public ResourceManager()
- Construct a realm configuration manager.
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.
unprotect
public synchronized void unprotect(Object res)
- Deletes the guard for the resource
- Parameters:
- resource - the object that must no longer be protected
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.
getProtectedResources
public synchronized Enumeration getProtectedResources()
- return an enumeration of all the objects that are
protected.
- Returns:
- a list of the objects that are protected.
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