Class MemoryTokensStorage (1.7.0)

publicclass MemoryTokensStorageimplementsTokenStore

Represents an in-memory storage of tokens.

Inheritance

java.lang.Object > MemoryTokensStorage

Implements

TokenStore

Constructors

MemoryTokensStorage()

publicMemoryTokensStorage()

Methods

delete(String id)

publicvoiddelete(Stringid)

Remove the token data from storage for the given ID.

Parameter
Name Description
id String
Exceptions
Type Description
IOException

load(String id)

publicStringload(Stringid)

Load the token data from storage for the given ID.

Parameter
Name Description
id String
Returns
Type Description
String
Exceptions
Type Description
IOException

store(String id, String tokens)

publicvoidstore(Stringid,Stringtokens)

Put the token data into storage for the given ID.

Parameters
Name Description
id String
tokens String
Exceptions
Type Description
IOException

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

Last updated 2025年10月30日 UTC.