Browse Source

cleaned up imports

pull/888/head
Justin Richer 9 years ago
parent
commit
8a4fb5f839
  1. 1
      openid-connect-common/src/main/java/org/mitre/oauth2/model/convert/JsonElementStringConverter.java
  2. 1
      openid-connect-common/src/main/java/org/mitre/oauth2/repository/OAuth2TokenRepository.java
  3. 1
      openid-connect-common/src/main/java/org/mitre/openid/connect/model/ApprovedSite.java
  4. 1
      uma-server/src/main/java/org/mitre/uma/repository/impl/JpaPermissionRepository.java
  5. 17
      uma-server/src/main/java/org/mitre/uma/web/PermissionRegistrationEndpoint.java
  6. 4
      uma-server/src/main/java/org/mitre/uma/web/ResourceSetRegistrationEndpoint.java

1
openid-connect-common/src/main/java/org/mitre/oauth2/model/convert/JsonElementStringConverter.java

@ -22,7 +22,6 @@ import javax.persistence.Converter;
import com.google.common.base.Strings;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
/**

1
openid-connect-common/src/main/java/org/mitre/oauth2/repository/OAuth2TokenRepository.java

@ -16,7 +16,6 @@
*******************************************************************************/
package org.mitre.oauth2.repository;
import java.util.Collection;
import java.util.List;
import java.util.Set;

1
openid-connect-common/src/main/java/org/mitre/openid/connect/model/ApprovedSite.java

@ -30,7 +30,6 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

1
uma-server/src/main/java/org/mitre/uma/repository/impl/JpaPermissionRepository.java

@ -23,7 +23,6 @@ import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.apache.http.MethodNotSupportedException;
import org.mitre.uma.model.Permission;
import org.mitre.uma.model.PermissionTicket;
import org.mitre.uma.model.ResourceSet;

17
uma-server/src/main/java/org/mitre/uma/web/PermissionRegistrationEndpoint.java

@ -17,13 +17,6 @@
package org.mitre.uma.web;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.mitre.oauth2.web.AuthenticationUtilities.ensureOAuthScope;
import static org.mitre.util.JsonUtils.getAsLong;
import static org.mitre.util.JsonUtils.getAsStringSet;
import java.util.Set;
import org.mitre.oauth2.model.SystemScope;
@ -34,17 +27,15 @@ import org.mitre.uma.model.PermissionTicket;
import org.mitre.uma.model.ResourceSet;
import org.mitre.uma.service.PermissionService;
import org.mitre.uma.service.ResourceSetService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.MimeTypeUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@ -54,6 +45,10 @@ import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonParser;
import static org.mitre.oauth2.web.AuthenticationUtilities.ensureOAuthScope;
import static org.mitre.util.JsonUtils.getAsLong;
import static org.mitre.util.JsonUtils.getAsStringSet;
/**
* @author jricher
*

4
uma-server/src/main/java/org/mitre/uma/web/ResourceSetRegistrationEndpoint.java

@ -28,8 +28,6 @@ import org.mitre.openid.connect.config.ConfigurationPropertiesBean;
import org.mitre.openid.connect.view.HttpCodeView;
import org.mitre.openid.connect.view.JsonEntityView;
import org.mitre.openid.connect.view.JsonErrorView;
import org.mitre.uma.model.Claim;
import org.mitre.uma.model.Policy;
import org.mitre.uma.model.ResourceSet;
import org.mitre.uma.service.ResourceSetService;
import org.mitre.uma.view.ResourceSetEntityAbbreviatedView;
@ -50,12 +48,10 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.google.common.base.Strings;
import com.google.common.collect.Sets;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonParser;
import com.google.gson.JsonPrimitive;
import static org.mitre.oauth2.web.AuthenticationUtilities.ensureOAuthScope;
import static org.mitre.util.JsonUtils.getAsLong;

Loading…
Cancel
Save