String secret = rs.getString("secret");
String displayName = rs.getString("display_name");
String connectURI = rs.getString("connect_uri");
String scopes = rs.getString("scopes");
String perms = rs.getString("permissions");
OAuthConsumer consumer =
new OAuthConsumer(key, secret, displayName, connectURI,
perms != null ? new String[]{perms} : null);
consumer.setScopes(new String[]{scopes});
return consumer;
} else {
throw new OAuthException(HttpURLConnection.HTTP_UNAUTHORIZED, "No such consumer key "+consumerKey);
}
} catch (SQLException ex) {