public class ActiveMQBasicSecurityManager extends Object implements ActiveMQSecurityManager5, UserManagement
Modifier and Type | Field and Description |
---|---|
static String |
BOOTSTRAP_PASSWORD |
static String |
BOOTSTRAP_ROLE |
static String |
BOOTSTRAP_USER |
Constructor and Description |
---|
ActiveMQBasicSecurityManager() |
Modifier and Type | Method and Description |
---|---|
void |
addNewUser(String user,
String password,
String... roles) |
Subject |
authenticate(String userToAuthenticate,
String passwordToAuthenticate,
RemotingConnection remotingConnection,
String securityDomain)
is this a valid user.
|
boolean |
authorize(Subject subject,
Set<Role> roles,
CheckType checkType,
String address)
Determine whether the given user has the correct role for the given check type.
|
void |
completeInit(StorageManager storageManager) |
ActiveMQBasicSecurityManager |
init(Map<String,String> properties)
Initialize the manager with the given configuration properties.
|
Map<String,Set<String>> |
listUser(String user) |
void |
removeUser(String user) |
void |
updateUser(String user,
String password,
String... roles) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain
public static final String BOOTSTRAP_USER
public static final String BOOTSTRAP_PASSWORD
public static final String BOOTSTRAP_ROLE
public ActiveMQBasicSecurityManager init(Map<String,String> properties)
ActiveMQSecurityManager
init
in interface ActiveMQSecurityManager
properties
- name/value pairs used to configure the ActiveMQSecurityManager instancethis
instancepublic boolean validateUser(String user, String password)
ActiveMQSecurityManager
validateUser
in interface ActiveMQSecurityManager
user
- the userpassword
- the users passwordpublic Subject authenticate(String userToAuthenticate, String passwordToAuthenticate, RemotingConnection remotingConnection, String securityDomain)
ActiveMQSecurityManager5
ActiveMQSecurityManager.validateUser(String, String)
.authenticate
in interface ActiveMQSecurityManager5
userToAuthenticate
- the userpasswordToAuthenticate
- the user's passwordremotingConnection
- the user's connection which contains any corresponding SSL certssecurityDomain
- the name of the JAAS security domain to use (can be null)public boolean validateUserAndRole(String user, String password, Set<Role> roles, CheckType checkType)
ActiveMQSecurityManager
validateUserAndRole
in interface ActiveMQSecurityManager
user
- the userpassword
- the users passwordroles
- the roles the user hascheckType
- the type of check to performpublic boolean authorize(Subject subject, Set<Role> roles, CheckType checkType, String address)
ActiveMQSecurityManager5
ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType)
.authorize
in interface ActiveMQSecurityManager5
subject
- the Subject to authorizeroles
- the roles configured in the security-settingscheckType
- which permission to validateaddress
- the address (or FQQN) to grant access topublic void addNewUser(String user, String password, String... roles) throws Exception
addNewUser
in interface UserManagement
Exception
public void removeUser(String user) throws Exception
removeUser
in interface UserManagement
Exception
public Map<String,Set<String>> listUser(String user)
listUser
in interface UserManagement
public void updateUser(String user, String password, String... roles) throws Exception
updateUser
in interface UserManagement
Exception
public void completeInit(StorageManager storageManager)
Copyright © 2021 JBoss by Red Hat. All rights reserved.