public class ActiveMQJAASSecurityManager extends Object implements ActiveMQSecurityManager3
Subject
returned by the login context is expecting to have a set of RolePrincipal
for each
role of the user.Constructor and Description |
---|
ActiveMQJAASSecurityManager() |
ActiveMQJAASSecurityManager(String configurationName) |
ActiveMQJAASSecurityManager(String configurationName,
SecurityConfiguration configuration) |
ActiveMQJAASSecurityManager(String configurationName,
String certificateConfigurationName) |
ActiveMQJAASSecurityManager(String configurationName,
String certificateConfigurationName,
SecurityConfiguration configuration,
SecurityConfiguration certificateConfiguration) |
Modifier and Type | Method and Description |
---|---|
static Object |
createGroupPrincipal(String name,
String groupClass) |
SecurityConfiguration |
getCertificateConfiguration() |
SecurityConfiguration |
getConfiguration() |
String |
getDomain() |
String |
getRolePrincipalClass() |
String |
getUserFromSubject(Subject subject) |
void |
setCertificateConfiguration(SecurityConfiguration certificateConfiguration) |
void |
setCertificateConfigurationName(String certificateConfigurationName) |
void |
setConfiguration(SecurityConfiguration configuration) |
void |
setConfigurationName(String configurationName) |
void |
setRolePrincipalClass(String rolePrincipalClass) |
boolean |
validateUser(String user,
String password)
is this a valid user.
|
String |
validateUser(String user,
String password,
RemotingConnection remotingConnection)
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
|
String |
validateUserAndRole(String user,
String password,
Set<Role> roles,
CheckType checkType,
String address,
RemotingConnection remotingConnection)
Determine whether the given user is valid and whether they have
the correct role for the given destination address.
|
public ActiveMQJAASSecurityManager()
public ActiveMQJAASSecurityManager(String configurationName)
public ActiveMQJAASSecurityManager(String configurationName, String certificateConfigurationName)
public ActiveMQJAASSecurityManager(String configurationName, SecurityConfiguration configuration)
public ActiveMQJAASSecurityManager(String configurationName, String certificateConfigurationName, SecurityConfiguration configuration, SecurityConfiguration certificateConfiguration)
public String getDomain()
getDomain
in interface ActiveMQSecurityManager
public boolean validateUser(String user, String password)
ActiveMQSecurityManager
validateUser
in interface ActiveMQSecurityManager
user
- the userpassword
- the users passwordpublic String validateUser(String user, String password, RemotingConnection remotingConnection)
ActiveMQSecurityManager3
ActiveMQSecurityManager.validateUser(String, String)
.validateUser
in interface ActiveMQSecurityManager3
user
- the userpassword
- the users passwordpublic 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 String validateUserAndRole(String user, String password, Set<Role> roles, CheckType checkType, String address, RemotingConnection remotingConnection)
ActiveMQSecurityManager3
ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType)
.validateUserAndRole
in interface ActiveMQSecurityManager3
user
- the userpassword
- the user's passwordroles
- the user's rolescheckType
- which permission to validateaddress
- the address for which to perform authorizationremotingConnection
- the user's connectionpublic void setConfigurationName(String configurationName)
public void setConfiguration(SecurityConfiguration configuration)
public void setCertificateConfigurationName(String certificateConfigurationName)
public void setCertificateConfiguration(SecurityConfiguration certificateConfiguration)
public SecurityConfiguration getConfiguration()
public SecurityConfiguration getCertificateConfiguration()
public String getRolePrincipalClass()
public void setRolePrincipalClass(String rolePrincipalClass)
Copyright © 2019 JBoss by Red Hat. All rights reserved.