public interface TokenMapStrategy
| Modifier and Type | Method and Description |
|---|---|
String |
fetchTemporaryTokenSecretForTemporaryToken(String temporaryToken)
Retrieve the value of a temporary token secret mapped to the given temporary token, which was mapped in the past via
mapTemporaryTokenToTemporaryTokenSecret(String, String). |
void |
mapTemporaryTokenToTemporaryTokenSecret(String temporaryToken,
String temporaryTokenSecret)
Persistently map the given temporary token to the given temporary token secret.
|
void mapTemporaryTokenToTemporaryTokenSecret(@Nonnull String temporaryToken, @Nonnull String temporaryTokenSecret) throws TokenMapException
temporaryToken - The temporary token, i.e. the "key" of the mapping. In the future, we will fetch from the map this key, and return its corresponding temporary token secret.temporaryTokenSecret - The temporary token secret, i.e. the "value" of the mapping. In the future, this value will be returned from the map after fetching its corresponding temporary token.TokenMapException - If the mapping failed.@Nullable String fetchTemporaryTokenSecretForTemporaryToken(@Nonnull String temporaryToken) throws TokenMapException
mapTemporaryTokenToTemporaryTokenSecret(String, String).temporaryToken - The temporary token, i.e. the "key" which we would like to retrieve the value of in the map.TokenMapException - If the lookup failed.Copyright © 2020. All rights reserved.