|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CredentialStore
OAuth 2.0 credential persistence store interface to provide a fully pluggable storage mechanism.
The user ID should be used as the primary key for storage, and the rest of the data consists of
the access token, refresh
token, and expiration time.
Implementations should be thread safe.
| 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. |
| Method Detail |
|---|
boolean load(String userId,
Credential credential)
userId - 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
void store(String userId,
Credential credential)
userId - user ID whose credential needs to be storedcredential - credential whose access token,
refresh token, and
expiration time need to be stored
void delete(String userId,
Credential credential)
userId - user ID whose credential needs to be deletedcredential - credential to be deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||