|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.security.impl.JBMSecurityManagerImpl
public class JBMSecurityManagerImpl
A basic implementation of the JBMUpdateableSecurityManager. This can be used within an appserver and be deployed by SecurityManagerDeployer or used standalone or embedded.
Constructor Summary | |
---|---|
JBMSecurityManagerImpl(boolean addGuestRole)
|
Method Summary | |
---|---|
void |
addRole(java.lang.String user,
java.lang.String role)
adds a new role for a user. |
void |
addUser(java.lang.String user,
java.lang.String password)
adds a new user |
void |
removeRole(java.lang.String user,
java.lang.String role)
removes a role from a user |
void |
removeUser(java.lang.String user)
removes a user and any roles they may have. |
boolean |
validateUser(java.lang.String user,
java.lang.String password)
is this a valid user. |
boolean |
validateUserAndRole(java.lang.String user,
java.lang.String password,
java.util.HashSet<Role> roles,
CheckType checkType)
is this a valid user and do they have the correct role |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBMSecurityManagerImpl(boolean addGuestRole)
Method Detail |
---|
public boolean validateUser(java.lang.String user, java.lang.String password)
JBMSecurityManager
validateUser
in interface JBMSecurityManager
user
- the userpassword
- the users password
public boolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.HashSet<Role> roles, CheckType checkType)
JBMSecurityManager
validateUserAndRole
in interface JBMSecurityManager
user
- the userpassword
- the users passwordroles
- the roles the user hascheckType
- the type of check to perform
public void addUser(java.lang.String user, java.lang.String password)
JBMUpdateableSecurityManager
addUser
in interface JBMUpdateableSecurityManager
user
- the user to addpassword
- theusers passwordpublic void removeUser(java.lang.String user)
JBMUpdateableSecurityManager
removeUser
in interface JBMUpdateableSecurityManager
user
- the user to removepublic void addRole(java.lang.String user, java.lang.String role)
JBMUpdateableSecurityManager
addRole
in interface JBMUpdateableSecurityManager
user
- the userrole
- the role to addpublic void removeRole(java.lang.String user, java.lang.String role)
JBMUpdateableSecurityManager
removeRole
in interface JBMUpdateableSecurityManager
user
- the userrole
- the role to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |