Package org.opennms.netmgt.activemq.auth
Class OpenNMSJaasAuthenticationBroker
- java.lang.Object
-
- org.apache.activemq.broker.BrokerFilter
-
- org.apache.activemq.security.AbstractAuthenticationBroker
-
- org.opennms.netmgt.activemq.auth.OpenNMSJaasAuthenticationBroker
-
- All Implemented Interfaces:
org.apache.activemq.broker.Broker
,org.apache.activemq.broker.region.Region
,org.apache.activemq.security.AuthenticationBroker
,org.apache.activemq.Service
public class OpenNMSJaasAuthenticationBroker extends org.apache.activemq.security.AbstractAuthenticationBroker
-
-
Constructor Summary
Constructors Constructor Description OpenNMSJaasAuthenticationBroker(org.apache.activemq.broker.Broker next, java.util.Set<java.net.InetAddress> trustedHosts, java.lang.String usernameForTrustedHosts, java.util.Set<java.security.Principal> principalsForTrustedHosts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnection(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.ConnectionInfo info)
org.apache.activemq.security.SecurityContext
authenticate(java.lang.String username, java.lang.String password, java.security.cert.X509Certificate[] certificates)
protected static java.net.InetAddress
getAddressFromConnectionString(java.lang.String remoteAddress)
-
Methods inherited from class org.apache.activemq.security.AbstractAuthenticationBroker
refresh, removeConnection, removeDestination
-
Methods 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, 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, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
-
-
-
-
Method Detail
-
addConnection
public void addConnection(org.apache.activemq.broker.ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) throws java.lang.Exception
- Specified by:
addConnection
in interfaceorg.apache.activemq.broker.Broker
- Overrides:
addConnection
in classorg.apache.activemq.broker.BrokerFilter
- Throws:
java.lang.Exception
-
getAddressFromConnectionString
protected static java.net.InetAddress getAddressFromConnectionString(java.lang.String remoteAddress)
-
authenticate
public org.apache.activemq.security.SecurityContext authenticate(java.lang.String username, java.lang.String password, java.security.cert.X509Certificate[] certificates) throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
-
-