Package com.symphony.bdk.core.auth.impl
Class InMemoryTokensRepository
java.lang.Object
com.symphony.bdk.core.auth.impl.InMemoryTokensRepository
- All Implemented Interfaces:
ExtensionAppTokensRepository
@API(status=STABLE)
public class InMemoryTokensRepository
extends Object
implements ExtensionAppTokensRepository
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InMemoryTokensRepository
public InMemoryTokensRepository()
-
-
Method Details
-
save
Description copied from interface:ExtensionAppTokensRepository
Saves an extensionApp authentication- Specified by:
save
in interfaceExtensionAppTokensRepository
- Parameters:
appToken
- the appToken used to authenticatesymphonyToken
- the returned symphonyToken to save
-
get
Description copied from interface:ExtensionAppTokensRepository
Get the optional symphony token associated to a given appToken- Specified by:
get
in interfaceExtensionAppTokensRepository
- Parameters:
appToken
- the appToken used in a previous authentication- Returns:
- an optional containing the symphonyToken if it exists, an empty optional otherwise
-