public interface HornetQSecurityManager extends org.hornetq.core.server.HornetQComponent
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
|
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) |
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
|
boolean validateUser(java.lang.String user, java.lang.String password)
user
- the userpassword
- the users passwordboolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.Set<org.hornetq.core.security.Role> roles, org.hornetq.core.security.CheckType checkType)
user
- the userpassword
- the users passwordroles
- the roles the user hascheckType
- the type of check to performvoid addUser(java.lang.String user, java.lang.String password)
user
- the user to addpassword
- theusers passwordvoid removeUser(java.lang.String user)
user
- the user to removevoid addRole(java.lang.String user, java.lang.String role)
user
- the userrole
- the role to addvoid removeRole(java.lang.String user, java.lang.String role)
user
- the userrole
- the role to removevoid setDefaultUser(java.lang.String username)
Copyright © 2009 Red Hat Inc. All Rights Reserved.