@Deprecated @Beta public interface CredentialStore
Implementations should be thread safe.
|Modifier and Type||Method and Description|
Deletes the credential of the given user ID.
Loads the credential for the given user ID.
Stores the credential of the given user ID.
boolean load(String userId, Credential credential) throws IOException
userId- user ID whose credential needs to be loaded
credential- credential whose
refresh token, and
expiration timeneed to be set if the credential already exists in storage
trueif the credential has been successfully found and loaded or
void store(String userId, Credential credential) throws IOException
Copyright © 2011–2021 Google. All rights reserved.