Package org.apache.activemq.security
Class JaasAuthenticationBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.security.AbstractAuthenticationBroker
org.apache.activemq.security.JaasAuthenticationBroker
- All Implemented Interfaces:
Broker,Region,AuthenticationBroker,org.apache.activemq.Service
Logs a user in using JAAS.
-
Field Summary
Fields inherited from class org.apache.activemq.security.AbstractAuthenticationBroker
securityContextsFields inherited from class org.apache.activemq.broker.BrokerFilter
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) A client is establishing a connection with the broker.authenticate(String username, String password, X509Certificate[] certificates) Authenticate the given user using the mechanism provided by this service.Methods inherited from class org.apache.activemq.security.AbstractAuthenticationBroker
refresh, removeConnection, removeDestinationMethods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConsumer, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
-
Constructor Details
-
JaasAuthenticationBroker
-
-
Method Details
-
addConnection
public void addConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) throws Exception Description copied from interface:BrokerA client is establishing a connection with the broker.- Specified by:
addConnectionin interfaceBroker- Overrides:
addConnectionin classBrokerFilter- Throws:
Exception- TODO
-
authenticate
public SecurityContext authenticate(String username, String password, X509Certificate[] certificates) throws SecurityException Description copied from interface:AuthenticationBrokerAuthenticate the given user using the mechanism provided by this service.- Parameters:
username- the given user name to authenticate, null indicates an anonymous user.password- the given password for the user to authenticate.certificates- for an SSL channel the certificates from remote peer.- Returns:
- a new SecurityContext for the authenticated user.
- Throws:
SecurityException- if the user cannot be authenticated.
-