oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1732985 - in /oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client: response/OAuthJSONAccessTokenResponse.java response/OAuthResourceResponse.java validator/ResourceValidator.java
Date Tue, 01 Mar 2016 01:04:53 GMT
Author: stein
Date: Tue Mar  1 01:04:53 2016
New Revision: 1732985

URL: http://svn.apache.org/viewvc?rev=1732985&view=rev
Log:
OLTU-191 Fix fetching resources. Make sure the validator is set in all scenarios..

Added:
    oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/validator/ResourceValidator.java
Modified:
    oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthJSONAccessTokenResponse.java
    oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthResourceResponse.java

Modified: oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthJSONAccessTokenResponse.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthJSONAccessTokenResponse.java?rev=1732985&r1=1732984&r2=1732985&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthJSONAccessTokenResponse.java
(original)
+++ oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthJSONAccessTokenResponse.java
Tue Mar  1 01:04:53 2016
@@ -36,6 +36,7 @@ import org.apache.oltu.oauth2.common.uti
 public class OAuthJSONAccessTokenResponse extends OAuthAccessTokenResponse {
 
     public OAuthJSONAccessTokenResponse() {
+        super();
     }
 
     @Override

Modified: oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthResourceResponse.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthResourceResponse.java?rev=1732985&r1=1732984&r2=1732985&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthResourceResponse.java
(original)
+++ oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/response/OAuthResourceResponse.java
Tue Mar  1 01:04:53 2016
@@ -16,6 +16,7 @@
  */
 package org.apache.oltu.oauth2.client.response;
 
+import org.apache.oltu.oauth2.client.validator.ResourceValidator;
 import org.apache.oltu.oauth2.common.exception.OAuthProblemException;
 
 import java.util.List;
@@ -23,6 +24,10 @@ import java.util.Map;
 
 public class OAuthResourceResponse extends OAuthClientResponse {
 
+    public OAuthResourceResponse() {
+        this.validator = new ResourceValidator();
+    }
+
     public String getBody() {
         return body;
     }

Added: oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/validator/ResourceValidator.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/validator/ResourceValidator.java?rev=1732985&view=auto
==============================================================================
--- oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/validator/ResourceValidator.java
(added)
+++ oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/validator/ResourceValidator.java
Tue Mar  1 01:04:53 2016
@@ -0,0 +1,9 @@
+package org.apache.oltu.oauth2.client.validator;
+
+import org.apache.oltu.oauth2.common.OAuth;
+
+public class ResourceValidator extends OAuthClientValidator {
+
+    public ResourceValidator() {
+    }
+}



Mime
View raw message