protected void checkError(Request request) throws AuthException{
final String error = request.getQueryString(Constants.OAUTH_PROBLEM);
if (error != null) {
if (error.equals(Constants.OAUTH_ACCESS_DENIED)) {
throw new AccessDeniedException(getKey());
} else {
throw new AuthException(error);
}
}
}