public interface

CredentialDataStore

fm.audiobox.core.store.CredentialDataStore

Class Overview

This interface is intended to be used for storing and getting back user's credentials.

Summary

Public Methods
abstract StoredCredential getCredentials(String label)
The implementation of this method must return the com.google.api.client.auth.oauth2.StoredCredential referenced by the label parameter.
abstract void saveCredentials(String label, Credential credential)
The implementation of this method should persists given com.google.api.client.auth.oauth2.Credential with the corresponding label.

Public Methods

public abstract StoredCredential getCredentials (String label)

The implementation of this method must return the com.google.api.client.auth.oauth2.StoredCredential referenced by the label parameter.

Parameters
label the identifiers of the previous saved credentials.
Throws
IOException

public abstract void saveCredentials (String label, Credential credential)

The implementation of this method should persists given com.google.api.client.auth.oauth2.Credential with the corresponding label.

Parameters
label a string that identifies the given credentials
credential the credential to store
Throws
IOException