    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

##

AuthRealm()
AuthRealm(String, ResourceContext)

##

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

##

AuthRealm

     public AuthRealm(String id,
                      ResourceContext context)

AuthRealm

     public AuthRealm()

##

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.

registerUser

     public synchronized void registerUser(AuthUser user)

  register this new user in the realm.

  Parameters:
    user - The new user.

registerResource

     public void registerResource(String name,
                                  Resource resource,
                                  Hashtable defs)

  Initialize and register the given resource within that container.

  Overrides:
    registerResource in class ContainerResource

unregisterUser

     public synchronized void unregisterUser(String name) throws MultipleLockException

  Unregister a user from the realm.

  Parameters:
    name - The user's name.

enumerateUserNames

     public synchronized Enumeration enumerateUserNames()

  Enumerate this realm user's name.

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.

save

     public synchronized void save()

  Save our store.

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