|
||||||||||
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 BasicUserCredentialsDeployer or used standalone or embedded.
Constructor Summary | |
---|---|
JBMSecurityManagerImpl()
|
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 |
boolean |
isStarted()
|
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. |
void |
setDefaultUser(java.lang.String username)
|
void |
start()
|
void |
stop()
|
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.Set<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()
Method Detail |
---|
public void start()
start
in interface MessagingComponent
public void stop()
stop
in interface MessagingComponent
public boolean isStarted()
isStarted
in interface MessagingComponent
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.Set<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)
JBMSecurityManager
addUser
in interface JBMSecurityManager
user
- the user to addpassword
- theusers passwordpublic void removeUser(java.lang.String user)
JBMSecurityManager
removeUser
in interface JBMSecurityManager
user
- the user to removepublic void addRole(java.lang.String user, java.lang.String role)
JBMSecurityManager
addRole
in interface JBMSecurityManager
user
- the userrole
- the role to addpublic void removeRole(java.lang.String user, java.lang.String role)
JBMSecurityManager
removeRole
in interface JBMSecurityManager
user
- the userrole
- the role to removepublic void setDefaultUser(java.lang.String username)
setDefaultUser
in interface JBMSecurityManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |