Class OAuth2TokenInMemoryStore
-
- All Implemented Interfaces:
-
com.sap.cloud.mobile.foundation.authentication.OAuth2TokenStore
public class OAuth2TokenInMemoryStore implements OAuth2TokenStore
-
-
Constructor Summary
Constructors Constructor Description OAuth2TokenInMemoryStore()
-
Method Summary
Modifier and Type Method Description voidstoreToken(@NonNull() OAuth2Token oauth2Token, @NonNull() String url)Called when a OAuth2Processor needs to store a token. OAuth2TokengetToken(@NonNull() String url)Called when a OAuth2Processor wants a token. voiddeleteToken(@NonNull() String url)Called when a token should be deleted. -
-
Method Detail
-
storeToken
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() OAuth2Token getToken(@NonNull() String url)
Called when a OAuth2Processor wants a token.
- Returns:
the token associated with the url, null if not found
-
deleteToken
void deleteToken(@NonNull() String url)
Called when a token should be deleted.
- Parameters:
url- The url which the token is no longer needed.
-
-
-
-