public interface CredentialDataStore
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.auth.oauth2.StoredCredential |
getCredentials(java.lang.String label)
The implementation of this method must return the
StoredCredential
referenced by the label parameter. |
void |
saveCredentials(java.lang.String label,
com.google.api.client.auth.oauth2.Credential credential)
The implementation of this method should persists given
Credential
with the corresponding label. |
void saveCredentials(java.lang.String label,
com.google.api.client.auth.oauth2.Credential credential)
throws java.io.IOException
Credential
with the corresponding label.label - a string that identifies the given credentialscredential - the credential to storejava.io.IOExceptioncom.google.api.client.auth.oauth2.StoredCredential getCredentials(java.lang.String label)
throws java.io.IOException
StoredCredential
referenced by the label parameter.label - the identifiers of the previous saved credentials.java.io.IOException