|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.auth.oauth2.MemoryCredentialStore
public class MemoryCredentialStore
Thread-safe in-memory implementation of a credential store.
| Constructor Summary | |
|---|---|
MemoryCredentialStore()
|
|
| Method Summary | |
|---|---|
void |
delete(String userId,
Credential credential)
Deletes the credential of the given user ID. |
boolean |
load(String userId,
Credential credential)
Loads the credential for the given user ID. |
void |
store(String userId,
Credential credential)
Stores the credential of the given user ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryCredentialStore()
| Method Detail |
|---|
public void store(String userId,
Credential credential)
CredentialStore
store in interface CredentialStoreuserId - user ID whose credential needs to be storedcredential - credential whose access token,
refresh token, and
expiration time need to be stored
public void delete(String userId,
Credential credential)
CredentialStore
delete in interface CredentialStoreuserId - user ID whose credential needs to be deletedcredential - credential to be deleted
public boolean load(String userId,
Credential credential)
CredentialStore
load in interface CredentialStoreuserId - user ID whose credential needs to be loadedcredential - credential whose access token,
refresh token, and
expiration time need to be set if the
credential already exists in storage
true if the credential has been successfully found and loaded or false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||