Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

acube.framework.clavierVirtuel.realm
Classe UserDatabaseRealm
java.lang.Object
  org.apache.catalina.realm.RealmBase
      acube.framework.clavierVirtuel.realm.RealmBaseAcube
          acube.framework.clavierVirtuel.realm.UserDatabaseRealm
Interfaces à implémenter:
org.apache.catalina.Lifecycle, MBeanRegistration, org.apache.catalina.Realm

public class UserDatabaseRealm
hérite de RealmBaseAcube

Implementation of org.apache.catalina.Realm that is based on an implementation of org.apache.catalina.UserDatabase made available through the global JNDI resources configured for this instance of Catalina. Set the resourceName parameter to the global JNDI resources NAME for the configured instance of UserDatabase that we should consult.

Author:
Craig R. McClanahan
Since:
4.1
Version:
$Revision: 1.1 $ $Date: 2007-03-26 08:14:20 $

Sommaire des Attributs
private org.apache.catalina.UserDatabase
database
The UserDatabase we will use to authenticate users and identify associated roles.
private final String
info
Descriptive information about this Realm implementation.
protected static final String
NAME
Descriptive information about this Realm implementation.
private String
resourceName
The global JNDI NAME of the UserDatabase resource we will be utilizing.
private static org.apache.catalina.util.StringManager
sm
The string manager for this package.
Attributs hérités de l'interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Sommaire des Constructeurs
Sommaire des Méthodes
String
getInfo()
{@inheritDoc}
protected String
getName()
{@inheritDoc}
protected String
getPassword(String username)
{@inheritDoc}
protected Principal
getPrincipal(String username)
{@inheritDoc}
String
getResourceName()
Return the global JNDI NAME of the UserDatabase resource we will be using.
boolean
hasRole(Principal principal, String role)
{@inheritDoc}
void
setResourceName(String resourceName)
Set the global JNDI NAME of the UserDatabase resource we will be using.
synchronized void
start()
{@inheritDoc}
synchronized void
stop()
{@inheritDoc}
Méthodes héritées de la classe acube.framework.clavierVirtuel.realm.RealmBaseAcube
authenticate
Méthodes héritées de la classe org.apache.catalina.realm.RealmBase
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, destroy, Digest, findLifecycleListeners, findSecurityConstraints, getAllRolesMode, getContainer, getController, getDigest, getDigestEncoding, getDomain, getInfo, getObjectName, getType, getValidate, hasResourcePermission, hasRole, hasUserDataPermission, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setAllRolesMode, setContainer, setController, setDigest, setDigestEncoding, setValidate, start, stop
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Méthodes héritées de l'interface org.apache.catalina.Lifecycle
addLifecycleListener, findLifecycleListeners, removeLifecycleListener, start, stop
Méthodes héritées de l'interface org.apache.catalina.Realm
addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, findSecurityConstraints, getContainer, getInfo, hasResourcePermission, hasRole, hasUserDataPermission, removePropertyChangeListener, setContainer
Méthodes héritées de l'interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
Détail des Attributs
NAME
protected static final String NAME
Descriptive information about this Realm implementation.

sm
private static org.apache.catalina.util.StringManager sm
The string manager for this package.

database
private org.apache.catalina.UserDatabase database
The UserDatabase we will use to authenticate users and identify associated roles.

info
private final String info
Descriptive information about this Realm implementation.

resourceName
private String resourceName
The global JNDI NAME of the UserDatabase resource we will be utilizing.
Détail des Constructeurs
UserDatabaseRealm
public UserDatabaseRealm()
Détail des méthodes
getInfo
public String getInfo()
{@inheritDoc}
Spécifié par:
getInfo in interface org.apache.catalina.Realm
Dépacées:
getInfo in class org.apache.catalina.realm.RealmBase

getResourceName
public String getResourceName()
Return the global JNDI NAME of the UserDatabase resource we will be using.
Retours:
the global JNDI NAME of the UserDatabase

setResourceName
public void setResourceName(String resourceName)
Set the global JNDI NAME of the UserDatabase resource we will be using.
Paramètres:
resourceName - The new global JNDI NAME

hasRole
public boolean hasRole(Principal principal,
                       String role)
{@inheritDoc}
Spécifié par:
hasRole in interface org.apache.catalina.Realm
Dépacées:
hasRole in class org.apache.catalina.realm.RealmBase

getName
protected String getName()
{@inheritDoc}
Dépacées:
getName in class org.apache.catalina.realm.RealmBase

getPassword
protected String getPassword(String username)
{@inheritDoc}
Dépacées:
getPassword in class org.apache.catalina.realm.RealmBase

getPrincipal
protected Principal getPrincipal(String username)
{@inheritDoc}
Dépacées:
getPrincipal in class org.apache.catalina.realm.RealmBase

start
public synchronized void start()
                        throws org.apache.catalina.LifecycleException
{@inheritDoc}
Spécifié par:
start in interface org.apache.catalina.Lifecycle
Dépacées:
start in class org.apache.catalina.realm.RealmBase
Exceptions:
org.apache.catalina.LifecycleException

stop
public synchronized void stop()
                       throws org.apache.catalina.LifecycleException
{@inheritDoc}
Spécifié par:
stop in interface org.apache.catalina.Lifecycle
Dépacées:
stop in class org.apache.catalina.realm.RealmBase
Exceptions:
org.apache.catalina.LifecycleException

Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

Version 3.1.0 du 06/11/2009 / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.
Documentation generated by DocFlex