org.hornetq.integration.jboss.security
public class JBossASSecurityManager extends Object implements HornetQSecurityManager, HornetQComponent
Constructor and Description |
---|
JBossASSecurityManager() |
Modifier and Type | Method and Description |
---|---|
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 |
setAllowClientLogin(boolean allowClientLogin) |
void |
setAuthenticationManager(org.jboss.security.AuthenticationManager authenticationManager) |
void |
setAuthoriseOnClientLogin(boolean authoriseOnClientLogin) |
void |
setDefaultUser(String username) |
void |
setRealmMapping(org.jboss.security.RealmMapping realmMapping) |
void |
setSecurityDomainName(String securityDomainName) |
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<Role> roles,
CheckType checkType)
is this a valid user and do they have the correct role
|
public boolean validateUser(String user, String password)
HornetQSecurityManager
validateUser
in interface HornetQSecurityManager
user
- the userpassword
- the users passwordpublic boolean validateUserAndRole(String user, String password, Set<Role> roles, CheckType checkType)
HornetQSecurityManager
validateUserAndRole
in interface HornetQSecurityManager
user
- the userpassword
- the users passwordroles
- the roles the user hascheckType
- the type of check to performpublic void addRole(String user, String role)
HornetQSecurityManager
addRole
in interface HornetQSecurityManager
user
- the userrole
- the role to addpublic void addUser(String user, String password)
HornetQSecurityManager
addUser
in interface HornetQSecurityManager
user
- the user to addpassword
- theusers passwordpublic void removeRole(String user, String role)
HornetQSecurityManager
removeRole
in interface HornetQSecurityManager
user
- the userrole
- the role to removepublic void removeUser(String user)
HornetQSecurityManager
removeUser
in interface HornetQSecurityManager
user
- the user to removepublic void setDefaultUser(String username)
setDefaultUser
in interface HornetQSecurityManager
public void setRealmMapping(org.jboss.security.RealmMapping realmMapping)
public void setAuthenticationManager(org.jboss.security.AuthenticationManager authenticationManager)
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void stop()
stop
in interface HornetQComponent
public boolean isStarted()
isStarted
in interface HornetQComponent
public void setSecurityDomainName(String securityDomainName)
public void setAllowClientLogin(boolean allowClientLogin)
public void setAuthoriseOnClientLogin(boolean authoriseOnClientLogin)
Copyright © 2015 JBoss, a division of Red Hat. All Rights Reserved.