Class MemoryTokensStorage (1.3.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
NameDescription
idString
Exceptions
TypeDescription
IOException

load(String id)

public String load(String id)

Load the token data from storage for the given ID.

Parameter
NameDescription
idString
Returns
TypeDescription
String
Exceptions
TypeDescription
IOException

store(String id, String tokens)

public void store(String id, String tokens)

Put the token data into storage for the given ID.

Parameters
NameDescription
idString
tokensString
Exceptions
TypeDescription
IOException