String.format(
"Access token retrieved successfully [accessToken = %s] [accessTokenSecret = %s]",
adapter.getAccessToken(), adapter.getAccessTokenSecret()));
}
SaveAccessTokenCallback save = adapter.getOauthSaveAccessToken();
if (save != null)
{
if (getLogger().isDebugEnabled())
{
getLogger().debug(
String.format(
"Attempting to save access token... [accessToken = %s] [accessTokenSecret = %s]",
adapter.getAccessToken(), adapter.getAccessTokenSecret()));
}
try
{
save.saveAccessToken(adapter.getAccessToken(), adapter.getAccessTokenSecret());
}
catch (Exception e)
{
getLogger().error("Cannot save access token, an unexpected error occurred", e);
}