public class FileRealm extends MemoryRealm
| Constructor and Description |
|---|
FileRealm() |
| Modifier and Type | Method and Description |
|---|---|
Account |
authenticate(AuthenticationToken authenticationToken)
Force a re-read of the credentials file (if modified) before executing authentication.
|
protected void |
readFile()
Reads the realm file and rebuilds the in-memory lookup tables.
|
void |
setFile(File realmFile) |
void |
setup(com.typesafe.config.Config config) |
void |
start() |
addAccount, addAccount, addAccount, authenticate, authenticateToken, canAuthenticate, getAccount, getRealmName, hasAccount, parseAccount, parseDefinedRoles, removeAccount, stopauthenticate, toString, validatePasswordpublic void setup(com.typesafe.config.Config config)
setup in interface Realmsetup in class MemoryRealmpublic void setFile(File realmFile)
public void start()
start in interface Realmstart in class MemoryRealmpublic Account authenticate(AuthenticationToken authenticationToken)
authenticate in interface Realmauthenticate in class MemoryRealmauthenticationToken - protected void readFile()
Copyright © 2017. All rights reserved.