public class FileCredentialStore extends Object implements CredentialStore
| Constructor and Description |
|---|
FileCredentialStore(File file,
com.google.api.client.json.JsonFactory jsonFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String userId,
Credential credential) |
protected boolean |
isSymbolicLink(File file)
Returns whether the given file is a symbolic link.
|
boolean |
load(String userId,
Credential credential) |
void |
store(String userId,
Credential credential) |
public FileCredentialStore(File file, com.google.api.client.json.JsonFactory jsonFactory) throws IOException
file - File to store user credentialsjsonFactory - JSON factory to serialize user credentialsIOExceptionprotected boolean isSymbolicLink(File file) throws IOException
IOExceptionpublic void store(String userId, Credential credential) throws IOException
store in interface CredentialStoreIOExceptionpublic void delete(String userId, Credential credential) throws IOException
delete in interface CredentialStoreIOExceptionpublic boolean load(String userId, Credential credential)
load in interface CredentialStoreCopyright © 2011-2013 Google. All Rights Reserved.