|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hornetq.spi.core.security.JAASSecurityManager
public class JAASSecurityManager

This implementation delegates to the JAAS security interfaces.
The Subject returned by the login context is expecting to have a Group with the Roles name
containing a set of JAASSecurityManager.SimplePrincipal for each role of the user.
| Nested Class Summary | |
|---|---|
static class |
JAASSecurityManager.SimplePrincipal
|
| Constructor Summary | |
|---|---|
JAASSecurityManager()
|
|
| Method Summary | |
|---|---|
void |
addRole(String user,
String role)
adds a new role for a user. |
void |
addUser(String user,
String password)
adds a new user |
boolean |
isStarted()
|
void |
removeRole(String user,
String role)
removes a role from a user |
void |
removeUser(String user)
removes a user and any roles they may have. |
void |
setCallbackHandler(CallbackHandler handler)
|
void |
setConfiguration(Configuration config)
|
void |
setConfigurationName(String configurationName)
|
void |
setDefaultUser(String username)
|
void |
start()
lifecycle method, needs to be called |
void |
stop()
|
boolean |
validateUser(String user,
String password)
is this a valid user. |
boolean |
validateUserAndRole(String user,
String password,
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JAASSecurityManager()
| Method Detail |
|---|
public boolean validateUser(String user,
String password)
HornetQSecurityManager
validateUser in interface HornetQSecurityManageruser - the userpassword - the users password
public boolean validateUserAndRole(String user,
String password,
Set<org.hornetq.core.security.Role> roles,
org.hornetq.core.security.CheckType checkType)
HornetQSecurityManager
validateUserAndRole in interface HornetQSecurityManageruser - the userpassword - the users passwordroles - the roles the user hascheckType - the type of check to perform
public void addRole(String user,
String role)
HornetQSecurityManager
addRole in interface HornetQSecurityManageruser - the userrole - the role to add
public void addUser(String user,
String password)
HornetQSecurityManager
addUser in interface HornetQSecurityManageruser - the user to addpassword - theusers password
public void removeRole(String user,
String role)
HornetQSecurityManager
removeRole in interface HornetQSecurityManageruser - the userrole - the role to removepublic void removeUser(String user)
HornetQSecurityManager
removeUser in interface HornetQSecurityManageruser - the user to removepublic void setDefaultUser(String username)
setDefaultUser in interface HornetQSecurityManager
public void start()
throws Exception
start in interface org.hornetq.core.server.HornetQComponentExceptionpublic void stop()
stop in interface org.hornetq.core.server.HornetQComponentpublic boolean isStarted()
isStarted in interface org.hornetq.core.server.HornetQComponentpublic void setConfigurationName(String configurationName)
public void setCallbackHandler(CallbackHandler handler)
public void setConfiguration(Configuration config)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||