@Override
    public void setAccessToken(@NonNull AccessToken accessToken) {
        sharedPreferences.edit().putLong(accessTokenKey + DATE_KEY_SUFFIX, accessToken.getExpiresIn()).apply();
        sharedPreferences.edit().putString(accessTokenKey + TOKEN_KEY_SUFFIX, accessToken.getToken()).apply();
        sharedPreferences.edit().putStringSet(accessTokenKey + SCOPES_KEY_SUFFIX,
                AuthUtils.scopeCollectionToStringSet(accessToken.getScopes())).apply();
        sharedPreferences.edit().putString(accessTokenKey + REFRESH_TOKEN_KEY_SUFFIX, accessToken.getRefreshToken()).apply();
        sharedPreferences.edit().putString(accessTokenKey + TOKEN_TYPE_KEY_SUFFIX, accessToken.getTokenType()).apply();
    }
@Override
    public void setAccessToken(@NonNull AccessToken accessToken) {
        sharedPreferences.edit().putLong(accessTokenKey + DATE_KEY_SUFFIX, accessToken.getExpiresIn()).apply();
        sharedPreferences.edit().putString(accessTokenKey + TOKEN_KEY_SUFFIX, accessToken.getToken()).apply();
        sharedPreferences.edit().putStringSet(accessTokenKey + SCOPES_KEY_SUFFIX,
                AuthUtils.scopeCollectionToStringSet(accessToken.getScopes())).apply();
        sharedPreferences.edit().putString(accessTokenKey + REFRESH_TOKEN_KEY_SUFFIX, accessToken.getRefreshToken()).apply();
        sharedPreferences.edit().putString(accessTokenKey + TOKEN_TYPE_KEY_SUFFIX, accessToken.getTokenType()).apply();
    }
@ Override public void setAccessToken ( @ NonNull AccessToken accessToken ) { sharedPreferences . edit ( ) . putLong ( accessTokenKey + DATE_KEY_SUFFIX , accessToken . getExpiresIn ( ) ) . apply ( ) ; sharedPreferences . edit ( ) . putString ( accessTokenKey + TOKEN_KEY_SUFFIX , accessToken . getToken ( ) ) . apply ( ) ; sharedPreferences . edit ( ) . putStringSet ( accessTokenKey + SCOPES_KEY_SUFFIX , AuthUtils . scopeCollectionToStringSet ( accessToken . getScopes ( ) ) ) . apply ( ) ; sharedPreferences . edit ( ) . putString ( accessTokenKey + REFRESH_TOKEN_KEY_SUFFIX , accessToken . getRefreshToken ( ) ) . apply ( ) ; sharedPreferences . edit ( ) . putString ( accessTokenKey + TOKEN_TYPE_KEY_SUFFIX , accessToken . getTokenType ( ) ) . apply ( ) ; }
Stores the {@link AccessToken}.
Stores the { @link AccessToken } .