public class JaasCertificateAuthenticationBroker extends BrokerFilter implements AuthenticationBroker
next| Constructor and Description |
|---|
JaasCertificateAuthenticationBroker(Broker next,
String jaasConfiguration)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(ConnectionContext context,
org.apache.activemq.command.ConnectionInfo info)
Overridden to allow for authentication based on client certificates.
|
SecurityContext |
authenticate(String username,
String password,
X509Certificate[] peerCertificates)
Authenticate the given user using the mechanism provided by this service.
|
void |
removeConnection(ConnectionContext context,
org.apache.activemq.command.ConnectionInfo info,
Throwable error)
Overriding removeConnection to make sure the security context is cleaned.
|
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, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemovedpublic JaasCertificateAuthenticationBroker(Broker next, String jaasConfiguration)
next - The Broker that does the actual work for this Filter.jaasConfiguration - The JAAS domain configuration name (refere to
JAAS documentation).public void addConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) throws Exception
addConnection in interface BrokeraddConnection in class BrokerFiltercontext - The context for the incoming Connection.info - The ConnectionInfo Command representing the incoming
connection.Exception - TODOpublic void removeConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info, Throwable error) throws Exception
removeConnection in interface BrokerremoveConnection in class BrokerFiltercontext - the environment the operation is being executed under.error - null if the client requested the disconnect or the error
that caused the client to disconnect.Exception - TODOpublic SecurityContext authenticate(String username, String password, X509Certificate[] peerCertificates) throws SecurityException
AuthenticationBrokerauthenticate in interface AuthenticationBrokerusername - the given user name to authenticate, null indicates an anonymous user.password - the given password for the user to authenticate.peerCertificates - for an SSL channel the certificates from remote peer.SecurityException - if the user cannot be authenticated.Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.