incubator-amber-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmo...@apache.org
Subject svn commit: r1146631 - /incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java
Date Thu, 14 Jul 2011 10:21:33 GMT
Author: lmoren
Date: Thu Jul 14 10:21:33 2011
New Revision: 1146631

URL: http://svn.apache.org/viewvc?rev=1146631&view=rev
Log:
- new constructors in the OAuthToken class

Modified:
    incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java

Modified: incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java?rev=1146631&r1=1146630&r2=1146631&view=diff
==============================================================================
--- incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java
(original)
+++ incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/token/BasicOAuthToken.java
Thu Jul 14 10:21:33 2011
@@ -19,6 +19,18 @@ public class BasicOAuthToken implements 
         this.scope = scope;
     }
 
+    public BasicOAuthToken(String accessToken) {
+        this(accessToken, null, null, null);
+    }
+
+    public BasicOAuthToken(String accessToken, String expiresIn) {
+        this(accessToken, expiresIn, null, null);
+    }
+
+    public BasicOAuthToken(String accessToken, String expiresIn, String scope) {
+        this(accessToken, expiresIn, null, scope);
+    }
+
     public String getAccessToken() {
         return accessToken;
     }



Mime
View raw message