public class AuthorizationCodeStore extends java.lang.Object implements FilesystemStore
Currently backed by the filesystem.
Constructor and Description |
---|
AuthorizationCodeStore(P4OAuthConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String code) |
java.io.File |
getCodeFile(java.lang.String code) |
P4OAuthConfig |
getConfig()
The stores must have access to the application configuration.
|
java.util.Optional<AuthorizationCode> |
read(java.lang.String code) |
void |
update(AuthorizationCode authCode) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ensureParentExists, getFile, readYamlFile, writeYamlFile
public AuthorizationCodeStore(P4OAuthConfig config)
public java.util.Optional<AuthorizationCode> read(java.lang.String code) throws java.io.IOException
java.io.IOException
public void delete(java.lang.String code) throws java.io.IOException
java.io.IOException
public void update(AuthorizationCode authCode) throws java.io.IOException
java.io.IOException
public java.io.File getCodeFile(java.lang.String code)
public P4OAuthConfig getConfig()
FilesystemStore
getConfig
in interface FilesystemStore