abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1228833 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java
Date Sun, 08 Jan 2012 12:48:49 GMT
Author: antelder
Date: Sun Jan  8 12:48:49 2012
New Revision: 1228833

URL: http://svn.apache.org/viewvc?rev=1228833&view=rev
Log:
Comment out a method that uses classes from the activities module which causes circular dependecies
as activities has a dependency on common

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java?rev=1228833&r1=1228832&r2=1228833&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java (original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/http/OAuthUtil.java Sun
Jan  8 12:48:49 2012
@@ -1,4 +1,7 @@
 package org.apache.abdera2.common.http;
+import static com.google.common.base.Preconditions.checkArgument;
+import static com.google.common.base.Preconditions.checkNotNull;
+
 import java.security.Key;
 import java.security.PrivateKey;
 import java.security.SecureRandom;
@@ -10,7 +13,6 @@ import java.util.TreeMap;
 import javax.crypto.Mac;
 import javax.crypto.spec.SecretKeySpec;
 
-import org.apache.abdera2.activities.extra.ClientSecrets;
 import org.apache.abdera2.common.date.DateTimes;
 import org.apache.abdera2.common.iri.IRI;
 import org.apache.abdera2.common.misc.ExceptionHelper;
@@ -31,9 +33,6 @@ import com.google.common.collect.Immutab
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Maps;
 
-import static com.google.common.base.Preconditions.checkNotNull;
-import static com.google.common.base.Preconditions.checkArgument;
-
 /**
  * This is largely experimental... it implements a number of 
  * OAuth related Authentication header builders for OAuth 1.0,
@@ -102,16 +101,16 @@ public final class OAuthUtil {
       return this;
     }
     
-    public OAuth1HeaderBuilder consumerDetails(
-      ClientSecrets secrets, 
-      ClientSecrets.Type type) {
-      checkNotNull(secrets);
-      if (secrets.has(type)) {
-        consumerKey(secrets.getClientId(type));
-        consumerSecret(secrets.getClientSecret(type));
-      }
-      return this;
-    }
+//    public OAuth1HeaderBuilder consumerDetails(
+//      ClientSecrets secrets, 
+//      ClientSecrets.Type type) {
+//      checkNotNull(secrets);
+//      if (secrets.has(type)) {
+//        consumerKey(secrets.getClientId(type));
+//        consumerSecret(secrets.getClientSecret(type));
+//      }
+//      return this;
+//    }
     
     public OAuth1HeaderBuilder consumerSecret(String secret) {
       this.consumer_secret = secret;



Mime
View raw message