Package org.apache.activemq.shiro
Class ShiroPlugin
- java.lang.Object
-
- org.apache.activemq.broker.BrokerFilter
-
- org.apache.activemq.broker.MutableBrokerFilter
-
- org.apache.activemq.broker.BrokerPluginSupport
-
- org.apache.activemq.shiro.ShiroPlugin
-
- All Implemented Interfaces:
Broker
,BrokerPlugin
,Region
,Service
public class ShiroPlugin extends BrokerPluginSupport
- Since:
- 5.10.0
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.broker.MutableBrokerFilter
next
-
-
Constructor Summary
Constructors Constructor Description ShiroPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationFilter
getAuthenticationFilter()
AuthenticationPolicy
getAuthenticationPolicy()
AuthorizationFilter
getAuthorizationFilter()
org.apache.shiro.env.Environment
getEnvironment()
org.apache.shiro.mgt.SecurityManager
getSecurityManager()
SubjectFilter
getSubjectFilter()
Broker
installPlugin(Broker broker)
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.boolean
isAuthenticationEnabled()
boolean
isAuthorizationEnabled()
boolean
isEnabled()
void
setAuthenticationEnabled(boolean authenticationEnabled)
void
setAuthenticationFilter(AuthenticationFilter authenticationFilter)
void
setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy)
void
setAuthorizationEnabled(boolean authorizationEnabled)
void
setAuthorizationFilter(AuthorizationFilter authorizationFilter)
void
setEnabled(boolean enabled)
void
setEnvironment(org.apache.shiro.env.Environment environment)
void
setIni(org.apache.shiro.config.Ini ini)
void
setIniConfig(String iniConfig)
void
setIniResourcePath(String resourcePath)
void
setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
void
setSubjectFilter(SubjectFilter subjectFilter)
-
Methods inherited from class org.apache.activemq.broker.BrokerPluginSupport
start, stop
-
Methods inherited from class org.apache.activemq.broker.MutableBrokerFilter
getAdaptor, getNext, setNext
-
Methods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, virtualDestinationAdded, virtualDestinationRemoved
-
-
-
-
Method Detail
-
getSubjectFilter
public SubjectFilter getSubjectFilter()
-
setSubjectFilter
public void setSubjectFilter(SubjectFilter subjectFilter)
-
getAuthenticationFilter
public AuthenticationFilter getAuthenticationFilter()
-
setAuthenticationFilter
public void setAuthenticationFilter(AuthenticationFilter authenticationFilter)
-
getAuthorizationFilter
public AuthorizationFilter getAuthorizationFilter()
-
setAuthorizationFilter
public void setAuthorizationFilter(AuthorizationFilter authorizationFilter)
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
-
getEnvironment
public org.apache.shiro.env.Environment getEnvironment()
-
setEnvironment
public void setEnvironment(org.apache.shiro.env.Environment environment)
-
getSecurityManager
public org.apache.shiro.mgt.SecurityManager getSecurityManager()
-
setSecurityManager
public void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
-
setIni
public void setIni(org.apache.shiro.config.Ini ini)
-
setIniConfig
public void setIniConfig(String iniConfig)
-
setIniResourcePath
public void setIniResourcePath(String resourcePath)
-
setAuthenticationEnabled
public void setAuthenticationEnabled(boolean authenticationEnabled)
-
isAuthenticationEnabled
public boolean isAuthenticationEnabled()
-
getAuthenticationPolicy
public AuthenticationPolicy getAuthenticationPolicy()
-
setAuthenticationPolicy
public void setAuthenticationPolicy(AuthenticationPolicy authenticationPolicy)
-
setAuthorizationEnabled
public void setAuthorizationEnabled(boolean authorizationEnabled)
-
isAuthorizationEnabled
public boolean isAuthorizationEnabled()
-
installPlugin
public Broker installPlugin(Broker broker) throws Exception
Description copied from interface:BrokerPlugin
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.- Specified by:
installPlugin
in interfaceBrokerPlugin
- Overrides:
installPlugin
in classBrokerPluginSupport
- Throws:
Exception
-
-