public class HornetQSecurityManagerImpl extends java.lang.Object implements HornetQSecurityManager
| Constructor and Description |
|---|
HornetQSecurityManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
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<org.hornetq.core.security.Role> roles,
org.hornetq.core.security.CheckType checkType)
is this a valid user and do they have the correct role
|
public HornetQSecurityManagerImpl()
public void start()
start in interface org.hornetq.core.server.HornetQComponentpublic void stop()
stop in interface org.hornetq.core.server.HornetQComponentpublic boolean isStarted()
isStarted in interface org.hornetq.core.server.HornetQComponentpublic boolean validateUser(java.lang.String user, java.lang.String password)
HornetQSecurityManagervalidateUser in interface HornetQSecurityManageruser - the userpassword - the users passwordpublic boolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.Set<org.hornetq.core.security.Role> roles, org.hornetq.core.security.CheckType checkType)
HornetQSecurityManagervalidateUserAndRole in interface HornetQSecurityManageruser - the userpassword - the users passwordroles - the roles the user hascheckType - the type of check to performpublic void addUser(java.lang.String user, java.lang.String password)
HornetQSecurityManageraddUser in interface HornetQSecurityManageruser - the user to addpassword - theusers passwordpublic void removeUser(java.lang.String user)
HornetQSecurityManagerremoveUser in interface HornetQSecurityManageruser - the user to removepublic void addRole(java.lang.String user, java.lang.String role)
HornetQSecurityManageraddRole in interface HornetQSecurityManageruser - the userrole - the role to addpublic void removeRole(java.lang.String user, java.lang.String role)
HornetQSecurityManagerremoveRole in interface HornetQSecurityManageruser - the userrole - the role to removepublic void setDefaultUser(java.lang.String username)
setDefaultUser in interface HornetQSecurityManagerCopyright © 2009 Red Hat Inc. All Rights Reserved.