|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.security.realm.factory.JResource
This class implements JOnAS realm factory objects. It is build from an xml file by the security service of JOnAS.
| Field Summary |
| Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
JResource()
Constructor |
|
| Method Summary | |
void |
clearCache()
Clear the cache |
abstract User |
findUser(java.lang.String name)
Check if a user is found and return it |
abstract java.util.ArrayList |
getArrayListCombinedRoles(User user)
Get all the roles (from the roles and from the groups) of the given user |
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
protected javax.management.MBeanServer |
getMBeanServer()
Get the MBean server |
java.lang.String |
getName()
Get the name of this resource |
abstract javax.naming.Reference |
getReference()
Retrieves the Reference of the object. |
protected long |
getSequenceNumber()
Return a sequence number and increase this number |
java.util.Hashtable |
getUsers()
Return users |
abstract boolean |
isValidUser(User user,
java.lang.String credentials)
Check if the given credential is the right credential for the given user |
abstract void |
removeMBeans()
Remove all the Mbeans used by this resource |
void |
saveConfig()
Update and save configuration |
static void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
|
void |
setName(java.lang.String name)
Set the name of this resource |
void |
setUsers(java.util.Hashtable users)
|
| Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JResource()
throws java.lang.Exception
java.lang.Exception - if a service can't be retrieved| Method Detail |
public void setName(java.lang.String name)
name - Name of the resourcepublic java.lang.String getName()
getName in interface JResourceMBeanprotected javax.management.MBeanServer getMBeanServer()
public abstract javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingException - if a naming exception was encountered while
retrieving the reference.
public abstract void removeMBeans()
throws JResourceException
JResourceException - if the MBeans can not be removed
public abstract User findUser(java.lang.String name)
throws JResourceException
name - the wanted user name
JResourceException - if there is an error during the search
public abstract boolean isValidUser(User user,
java.lang.String credentials)
user - user to check its credentialscredentials - the given credentials
public abstract java.util.ArrayList getArrayListCombinedRoles(User user)
throws JResourceException
user - the given user
JResourceException - if it failspublic java.util.Hashtable getUsers()
protected long getSequenceNumber()
public void saveConfig()
saveConfig in interface JResourceMBeanpublic static org.objectweb.util.monolog.api.Logger getLogger()
public static void setLogger(org.objectweb.util.monolog.api.Logger logger)
logger - The logger to set.public void setUsers(java.util.Hashtable users)
users - The users to set.public void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||