public class MemoryRealm extends StandardCredentialsRealm
| Constructor and Description |
|---|
MemoryRealm() |
| Modifier and Type | Method and Description |
|---|---|
Account |
addAccount(Account account) |
Account |
addAccount(String username,
String password) |
Account |
addAccount(String name,
String username,
String password) |
Account |
authenticate(AuthenticationToken authenticationToken) |
Account |
authenticate(String username,
String password) |
Account |
authenticateToken(TokenCredentials credentials) |
boolean |
canAuthenticate(AuthenticationToken authenticationToken) |
Account |
getAccount(String username) |
String |
getRealmName() |
boolean |
hasAccount(String username) |
protected Account |
parseAccount(com.typesafe.config.Config accountConfig) |
protected Map<String,Role> |
parseDefinedRoles(com.typesafe.config.Config config)
Parse the Roles specified in the Config object.
|
Account |
removeAccount(String username) |
void |
setup(com.typesafe.config.Config config) |
void |
start() |
void |
stop() |
authenticate, toString, validatePasswordpublic boolean canAuthenticate(AuthenticationToken authenticationToken)
canAuthenticate in interface RealmcanAuthenticate in class StandardCredentialsRealmpublic Account authenticate(AuthenticationToken authenticationToken)
authenticate in interface Realmauthenticate in class StandardCredentialsRealmpublic void setup(com.typesafe.config.Config config)
public void start()
public void stop()
protected Account parseAccount(com.typesafe.config.Config accountConfig)
protected Map<String,Role> parseDefinedRoles(com.typesafe.config.Config config)
config - public String getRealmName()
public boolean hasAccount(String username)
public Account authenticate(String username, String password)
authenticate in class StandardCredentialsRealmpublic Account authenticateToken(TokenCredentials credentials)
Copyright © 2017. All rights reserved.