public class WhitelistStore extends java.lang.Object implements FilesystemStore
It's assumed that the whitelist is generally only updated by a local administrator. It's just a simple YAML file that we may provide an admin interface to over the long term.
| Constructor and Description |
|---|
WhitelistStore(P4OAuthConfig config) |
| Modifier and Type | Method and Description |
|---|---|
P4OAuthConfig |
getConfig()
The stores must have access to the application configuration.
|
java.io.File |
getWhitelistFile() |
Whitelist |
read() |
void |
update(Whitelist w) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureParentExists, getFile, readYamlFile, writeYamlFilepublic WhitelistStore(P4OAuthConfig config)
public Whitelist read() throws java.io.IOException
java.io.IOExceptionpublic void update(Whitelist w) throws java.io.IOException
java.io.IOExceptionpublic java.io.File getWhitelistFile()
public P4OAuthConfig getConfig()
FilesystemStoregetConfig in interface FilesystemStore