update("UPDATE consumers SET permissions="
+ "'" + permissions[0] + "'"
+ " WHERE key='" + consumerKey + "'");
}
} catch (SQLException ex) {
throw new OAuthException(HttpURLConnection.HTTP_UNAUTHORIZED,
"Scopes for the consumer with key " + consumerKey + " can not be registered");
}
}