public class FileCredentialStore extends Object implements CredentialStore
| Constructor and Description |
|---|
FileCredentialStore(File file,
com.google.api.client.json.JsonFactory jsonFactory)
Upgrade warning: this method now throws an
IOException. |
| 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
Upgrade warning: this method now throws an IOException. In prior version 1.11 it threw
an Exception.
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-2012 Google. All Rights Reserved.