All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.auth.RealmsCatalog

java.lang.Object
   |
   +----w3c.jigsaw.auth.RealmsCatalog

public class RealmsCatalog
extends Object
implements ResourceStoreHolder

Variable Index

 o repository
Our realm repository.
 o server
Our associated server.
 o store
Our realm's store.

Constructor Index

 o RealmsCatalog(httpd)
 o RealmsCatalog(httpd, String)

Method Index

 o acceptStoreUnload(ResourceStore)
ResourceStoreHolder implementation - Unload the store.
 o acquireStore()
Acquire the store.
 o enumerateRealmNames()
Enumerate the list of available realms.
 o getRepository()
Get our repository.
 o loadRealm(String)
Load the given realm and return the AuthRealm instance.
 o notifyStoreShutdown(ResourceStore)
The resource store asks us to shutdown our associated store.
 o notifyStoreStabilize(ResourceStore)
ResourceStoreHolder implementation - Save our store.
 o registerRealm(AuthRealm)
register the given new realm.
 o save()
Save the catalog back to disk.
 o unregisterRealm(String)
Unregister the given realm from the catalog.

Variables

 o repository
 protected File repository
Our realm repository.

 o store
 protected ResourceStore store
Our realm's store.

 o server
 protected httpd server
Our associated server.

Constructors

 o RealmsCatalog
 public RealmsCatalog(httpd server)
 o RealmsCatalog
 public RealmsCatalog(httpd server,
                      String repository)

Methods

 o acquireStore
 protected synchronized void acquireStore()
Acquire the store. Should only be called from a synchronized method.

 o getRepository
 public File getRepository()
Get our repository.

 o loadRealm
 public synchronized AuthRealm loadRealm(String name)
Load the given realm and return the AuthRealm instance.

Parameters:
name - The realm identifier.
 o enumerateRealmNames
 public synchronized Enumeration enumerateRealmNames()
Enumerate the list of available realms.

 o registerRealm
 public synchronized void registerRealm(AuthRealm realm)
register the given new realm.

Parameters:
realm - The new realm to register.
 o unregisterRealm
 public synchronized void unregisterRealm(String name)
Unregister the given realm from the catalog.

Parameters:
name - The name of the catalog.
 o save
 public synchronized void save()
Save the catalog back to disk.

 o acceptStoreUnload
 public synchronized boolean acceptStoreUnload(ResourceStore st)
ResourceStoreHolder implementation - Unload the store.

Parameters:
st - The store to unload.
Returns:
A boolean true if store was successfully unloaded.
 o notifyStoreShutdown
 public void notifyStoreShutdown(ResourceStore st)
The resource store asks us to shutdown our associated store.

Parameters:
st - The store to shutdown.
 o notifyStoreStabilize
 public void notifyStoreStabilize(ResourceStore st)
ResourceStoreHolder implementation - Save our store.

Parameters:
st - The store to be saved.
Returns:
A boolean true if saving the store is now not modified.

All Packages  Class Hierarchy  This Package  Previous  Next  Index