googleauth - Class Google::Auth::TokenStore (v1.12.2)

Reference documentation and code samples for the googleauth class Google::Auth::TokenStore.

Interface definition for token stores. It is not required thatimplementations inherit from this class. It is provided for documentationpurposes to illustrate the API contract.

Inherits

  • Object

Methods

.default

defself.default()

Returns the value of attribute default.

.default=

defself.default=(value)

Sets the attribute default

#delete

defdelete(_id)

Remove the token data from storage for the given ID.

Parameter
  • id (String) — ID of the token data to delete
Raises
  • (NoMethodError)

#load

defload(_id)->String

Load the token data from storage for the given ID.

Parameter
  • id (String) — ID of token data to load.
Returns
  • (String) — The loaded token data.
Raises
  • (NoMethodError)

#store

defstore(_id,_token)

Put the token data into storage for the given ID.

Parameters
  • id (String) — ID of token data to store.
  • token (String) — The token data to store.
Raises
  • (NoMethodError)

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.