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, wait
ensureParentExists, getFile, readYamlFile, writeYamlFile
public WhitelistStore(P4OAuthConfig config)
public Whitelist read() throws java.io.IOException
java.io.IOException
public void update(Whitelist w) throws java.io.IOException
java.io.IOException
public java.io.File getWhitelistFile()
public P4OAuthConfig getConfig()
FilesystemStore
getConfig
in interface FilesystemStore