Interface OAuth2TokenStore
-
- All Implemented Interfaces:
public interface OAuth2TokenStore
This class takes care of storing (and potentially persisting) the OAuth token.
-
-
Method Summary
Modifier and Type Method Description abstract void
storeToken(@NonNull() OAuth2Token oauth2Token, @NonNull() String url)
Called when a OAuth2Processor needs to store a token. abstract OAuth2Token
getToken(@NonNull() String url)
Called when a OAuth2Processor wants a token. abstract void
deleteToken(@NonNull() String url)
Called when a token should be deleted. -
-
Method Detail
-
storeToken
abstract void storeToken(@NonNull() OAuth2Token oauth2Token, @NonNull() String url)
Called when a OAuth2Processor needs to store a token.
- Parameters:
oauth2Token
- the token to be storedurl
- the url the token is associated to
-
getToken
@Nullable() abstract OAuth2Token getToken(@NonNull() String url)
Called when a OAuth2Processor wants a token.
- Returns:
the token associated with the url, null if not found
-
deleteToken
abstract void deleteToken(@NonNull() String url)
Called when a token should be deleted.
- Parameters:
url
- The url which the token is no longer needed.
-
-
-
-