public class SimpleAuthenticationBroker extends AbstractAuthenticationBroker
securityContexts
next
Constructor and Description |
---|
SimpleAuthenticationBroker(Broker next,
Map<String,String> userPasswords,
Map<String,Set<Principal>> userGroups) |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(ConnectionContext context,
ConnectionInfo info)
A client is establishing a connection with the broker.
|
SecurityContext |
authenticate(String username,
String password,
X509Certificate[] certificates)
Authenticate the given user using the mechanism provided by this service.
|
void |
setAnonymousAccessAllowed(boolean anonymousAccessAllowed) |
void |
setAnonymousGroup(String anonymousGroup) |
void |
setAnonymousUser(String anonymousUser) |
void |
setUserGroups(Map<String,Set<Principal>> value) |
void |
setUserPasswords(Map<String,String> value) |
refresh, removeConnection, removeDestination
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, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)
public void setAnonymousUser(String anonymousUser)
public void setAnonymousGroup(String anonymousGroup)
public void setUserPasswords(Map<String,String> value)
public void setUserGroups(Map<String,Set<Principal>> value)
public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception
Broker
addConnection
in interface Broker
addConnection
in class BrokerFilter
Exception
- TODOpublic SecurityContext authenticate(String username, String password, X509Certificate[] certificates) throws SecurityException
AuthenticationBroker
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.SecurityException
- if the user cannot be authenticated.Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.