@API(status=STABLE) public class InMemoryTokensRepository extends java.lang.Object implements ExtensionAppTokensRepository
Constructor and Description |
---|
InMemoryTokensRepository() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
get(java.lang.String appToken)
Get the optional symphony token associated to a given appToken
|
void |
save(java.lang.String appToken,
java.lang.String symphonyToken)
Saves an extensionApp authentication
|
public void save(java.lang.String appToken, java.lang.String symphonyToken)
ExtensionAppTokensRepository
save
in interface ExtensionAppTokensRepository
appToken
- the appToken used to authenticatesymphonyToken
- the returned symphonyToken to savepublic java.util.Optional<java.lang.String> get(java.lang.String appToken)
ExtensionAppTokensRepository
get
in interface ExtensionAppTokensRepository
appToken
- the appToken used in a previous authentication