class Google::Auth::TokenStore
Interface definition for token stores. It is not required that implementations inherit from this class. It is provided for documentation purposes to illustrate the API contract.
Attributes
Public Instance Methods
Source
# File lib/googleauth/token_store.rb, line 49 def delete _id raise NoMethodError, "delete not implemented" end
Remove the token data from storage for the given ID.
@param [String] id
ID of the token data to delete
Source
# File lib/googleauth/token_store.rb, line 31 def load _id raise NoMethodError, "load not implemented" end
Load the token data from storage for the given ID.
@param [String] id
ID of token data to load.
@return [String]
The loaded token data.
Source
# File lib/googleauth/token_store.rb, line 41 def store _id, _token raise NoMethodError, "store not implemented" end
Put the token data into storage for the given ID.
@param [String] id
ID of token data to store.
@param [String] token
The token data to store.