public class ActiveMQJAASSecurityManager extends Object implements ActiveMQSecurityManager2
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,
org.apache.activemq.artemis.core.config.impl.SecurityConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
org.apache.activemq.artemis.core.config.impl.SecurityConfiguration |
getConfiguration() |
void |
setConfiguration(org.apache.activemq.artemis.core.config.impl.SecurityConfiguration configuration) |
void |
setConfigurationName(String configurationName) |
boolean |
validateUser(String user,
String password)
is this a valid user.
|
boolean |
validateUser(String user,
String password,
X509Certificate[] certificates)
is this a valid user.
|
boolean |
validateUserAndRole(String user,
String password,
Set<org.apache.activemq.artemis.core.security.Role> roles,
org.apache.activemq.artemis.core.security.CheckType checkType)
is this a valid user and do they have the correct role
|
boolean |
validateUserAndRole(String user,
String password,
Set<org.apache.activemq.artemis.core.security.Role> roles,
org.apache.activemq.artemis.core.security.CheckType checkType,
String address,
RemotingConnection connection)
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, org.apache.activemq.artemis.core.config.impl.SecurityConfiguration configuration)
public boolean validateUser(String user, String password)
ActiveMQSecurityManager
validateUser
in interface ActiveMQSecurityManager
user
- the userpassword
- the users passwordpublic boolean validateUser(String user, String password, X509Certificate[] certificates)
ActiveMQSecurityManager2
ActiveMQSecurityManager.validateUser(String, String)
.validateUser
in interface ActiveMQSecurityManager2
user
- the userpassword
- the users passwordpublic boolean validateUserAndRole(String user, String password, Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.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 validateUserAndRole(String user, String password, Set<org.apache.activemq.artemis.core.security.Role> roles, org.apache.activemq.artemis.core.security.CheckType checkType, String address, RemotingConnection connection)
ActiveMQSecurityManager2
ActiveMQSecurityManager.validateUserAndRole(String, String, Set, CheckType)
.validateUserAndRole
in interface ActiveMQSecurityManager2
user
- the userpassword
- the user's passwordroles
- the user's rolescheckType
- which permission to validateaddress
- the address for which to perform authorizationconnection
- the user's connectionpublic void setConfigurationName(String configurationName)
public void setConfiguration(org.apache.activemq.artemis.core.config.impl.SecurityConfiguration configuration)
public org.apache.activemq.artemis.core.config.impl.SecurityConfiguration getConfiguration()
Copyright © 2015 The Apache Software Foundation. All rights reserved.