public class SecurityStoreImpl extends Object implements SecurityStore, HierarchicalRepositoryChangeListener
| Constructor and Description |
|---|
SecurityStoreImpl(HierarchicalRepository<Set<Role>> securityRepository,
ActiveMQSecurityManager securityManager,
long invalidationInterval,
boolean securityEnabled,
String managementClusterUser,
String managementClusterPassword,
NotificationService notificationService,
long authenticationCacheSize,
long authorizationCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(String user,
String password,
RemotingConnection connection) |
String |
authenticate(String user,
String password,
RemotingConnection connection,
String securityDomain) |
void |
check(SimpleString address,
CheckType checkType,
SecurityAuth session) |
void |
check(SimpleString address,
SimpleString queue,
CheckType checkType,
SecurityAuth session) |
long |
getAuthenticationCacheSize() |
long |
getAuthorizationCacheSize() |
String |
getCertSubjectDN(RemotingConnection connection) |
static String |
getUserFromSubject(Subject subject) |
void |
invalidateAuthenticationCache() |
void |
invalidateAuthorizationCache() |
boolean |
isSecurityEnabled() |
void |
onChange() |
void |
setSecurityEnabled(boolean securityEnabled) |
void |
stop() |
public SecurityStoreImpl(HierarchicalRepository<Set<Role>> securityRepository, ActiveMQSecurityManager securityManager, long invalidationInterval, boolean securityEnabled, String managementClusterUser, String managementClusterPassword, NotificationService notificationService, long authenticationCacheSize, long authorizationCacheSize)
notificationService - can be nullpublic boolean isSecurityEnabled()
isSecurityEnabled in interface SecurityStorepublic void setSecurityEnabled(boolean securityEnabled)
setSecurityEnabled in interface SecurityStorepublic void stop()
stop in interface SecurityStorepublic String authenticate(String user, String password, RemotingConnection connection) throws Exception
authenticate in interface SecurityStoreExceptionpublic String authenticate(String user, String password, RemotingConnection connection, String securityDomain) throws Exception
authenticate in interface SecurityStoreExceptionpublic String getCertSubjectDN(RemotingConnection connection)
public void check(SimpleString address, CheckType checkType, SecurityAuth session) throws Exception
check in interface SecurityStoreExceptionpublic void check(SimpleString address, SimpleString queue, CheckType checkType, SecurityAuth session) throws Exception
check in interface SecurityStoreExceptionpublic void onChange()
onChange in interface HierarchicalRepositoryChangeListenerpublic void invalidateAuthorizationCache()
public void invalidateAuthenticationCache()
public long getAuthenticationCacheSize()
public long getAuthorizationCacheSize()
Copyright © 2025 JBoss by Red Hat. All rights reserved.