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, waitensureParentExists, getFile, readYamlFile, writeYamlFilepublic AuthorizationCodeStore(P4OAuthConfig config)
public java.util.Optional<AuthorizationCode> read(java.lang.String code) throws java.io.IOException
java.io.IOExceptionpublic void delete(java.lang.String code)
throws java.io.IOException
java.io.IOExceptionpublic void update(AuthorizationCode authCode) throws java.io.IOException
java.io.IOExceptionpublic java.io.File getCodeFile(java.lang.String code)
public P4OAuthConfig getConfig()
FilesystemStoregetConfig in interface FilesystemStore