+ secret + "'"
+ ", " + (scopes != null ? "'" + scopes[0] + "'" : null)
+ ", " + (permissions != null ? "'" + permissions[0] + "'" : null)
+ ")");
return new OAuthToken(token, secret,
requestToken.getScopes(), requestToken.getPermissions(), -1, requestToken.getConsumer());
} catch (SQLException ex) {
throw new OAuthException(HttpURLConnection.HTTP_UNAUTHORIZED,
"Request token for the consumer with key " + consumerKey + " can not be created");
}