All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.auth.AuthRealm

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.AbstractContainer
                                   |
                                   +----org.w3c.tools.resources.ContainerResource
                                           |
                                           +----org.w3c.tools.resources.ExternalContainer
                                                   |
                                                   +----org.w3c.jigsaw.auth.AuthRealm

public class AuthRealm
extends ExternalContainer

Constructor Index

 o AuthRealm()
 o AuthRealm(String, ResourceContext)

Method Index

 o enumerateUserNames()
Enumerate this realm user's name.
 o getRepository(ResourceContext)
Get The repository for this external container.
 o loadUser(String)
Load the user having this name.
 o makeRealm(ResourceContext, String)
create a new empty realm.
 o registerResource(String, Resource, Hashtable)
Initialize and register the given resource within that container.
 o registerUser(AuthUser)
register this new user in the realm.
 o save()
Save our store.
 o unregisterUser(String)
Unregister a user from the realm.

Constructors

 o AuthRealm
 public AuthRealm(String id,
                  ResourceContext context)
 o AuthRealm
 public AuthRealm()

Methods

 o loadUser
 public synchronized ResourceReference loadUser(String name)
Load the user having this name.

Parameters:
name - The user's name.
Returns:
An instance of AuthUser or null if not found.
 o registerUser
 public synchronized void registerUser(AuthUser user)
register this new user in the realm.

Parameters:
user - The new user.
 o registerResource
 public void registerResource(String name,
                              Resource resource,
                              Hashtable defs)
Initialize and register the given resource within that container.

Overrides:
registerResource in class ContainerResource
 o unregisterUser
 public synchronized void unregisterUser(String name) throws MultipleLockException
Unregister a user from the realm.

Parameters:
name - The user's name.
Throws: MultipleLockException
if someone else has locked this user.
 o enumerateUserNames
 public synchronized Enumeration enumerateUserNames()
Enumerate this realm user's name.

 o makeRealm
 public static AuthRealm makeRealm(ResourceContext context,
                                   String name)
create a new empty realm.

Parameters:
name - The name of the realm.
repository - The file to use to store the realm database.
 o save
 public synchronized void save()
Save our store.

 o getRepository
 public File getRepository(ResourceContext context)
Get The repository for this external container.

Overrides:
getRepository in class ExternalContainer

All Packages  Class Hierarchy  This Package  Previous  Next  Index