public class SimpleAuthenticationPlugin extends Object implements BrokerPlugin
Constructor and Description |
---|
SimpleAuthenticationPlugin() |
SimpleAuthenticationPlugin(List<?> users) |
Modifier and Type | Method and Description |
---|---|
String |
getAnonymousGroup() |
String |
getAnonymousUser() |
Map<String,Set<Principal>> |
getUserGroups() |
Map<String,String> |
getUserPasswords() |
Broker |
installPlugin(Broker parent)
Installs the plugin into the interceptor chain of the broker, returning the new
intercepted broker to use.
|
boolean |
isAnonymousAccessAllowed() |
void |
setAnonymousAccessAllowed(boolean anonymousAccessAllowed) |
void |
setAnonymousGroup(String anonymousGroup) |
void |
setAnonymousUser(String anonymousUser) |
void |
setUserGroups(Map<String,Set<Principal>> userGroups)
Sets the groups a user is in.
|
void |
setUserPasswords(Map<String,String> userPasswords)
Sets the map indexed by user name with the value the password
|
void |
setUsers(List<?> users)
Sets individual users for authentication
|
public SimpleAuthenticationPlugin()
public SimpleAuthenticationPlugin(List<?> users)
public Broker installPlugin(Broker parent)
BrokerPlugin
installPlugin
in interface BrokerPlugin
public Map<String,Set<Principal>> getUserGroups()
public void setAnonymousAccessAllowed(boolean anonymousAccessAllowed)
public boolean isAnonymousAccessAllowed()
public void setAnonymousUser(String anonymousUser)
public String getAnonymousUser()
public void setAnonymousGroup(String anonymousGroup)
public String getAnonymousGroup()
public void setUserGroups(Map<String,Set<Principal>> userGroups)
public Map<String,String> getUserPasswords()
public void setUserPasswords(Map<String,String> userPasswords)
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.