Class MemoryTokensStorage (1.25.0)

public class MemoryTokensStorage implements TokenStore

Represents an in-memory storage of tokens.

Inheritance

java.lang.Object > MemoryTokensStorage

Implements

TokenStore

Constructors

MemoryTokensStorage()

public MemoryTokensStorage()

Methods

delete(String id)

public void delete(String id)

Remove the token data from storage for the given ID.

Parameter
Name Description
id String
Exceptions
Type Description
IOException

load(String id)

public String load(String id)

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)

public void store(String id, String tokens)

Put the token data into storage for the given ID.

Parameters
Name Description
id String
tokens String
Exceptions
Type Description
IOException