This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- ====================================================================== | |
Pablo Fernandez | |
====================================================================== --> | |
<project name="project" basedir="."> | |
<taskdef name="ivy-configure" classname="org.apache.ivy.ant.IvyConfigure" /> | |
<taskdef name="ivy-resolve" classname="org.apache.ivy.ant.IvyResolve" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------- Ant diagnostics report ------- | |
Apache Ant version 1.7.0 compiled on February 29 2008 | |
------------------------------------------- | |
Implementation Version | |
------------------------------------------- | |
core tasks : 1.7.0 | |
optional tasks : not available | |
------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyCrazyEqualizer extends DefaultEqualizer { | |
@Override | |
public String tuneOAuthHeader(Request request, String toSign, CallType type) { | |
return toSign.replace("oauth_timestamp","crazy_provider_oauth_timestamp"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.io.*; | |
import java.net.*; | |
import oauth.signpost.*; | |
import oauth.signpost.basic.*; | |
public class SingpostTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.io.*; | |
import java.net.*; | |
import oauth.signpost.*; | |
import oauth.signpost.basic.*; | |
public class SingpostTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"stringToSign":"GET&http%3A%2F%2Fsocial.yahooapis.com%2Fv1%2Fuser%2FA6ROU63MXWDCW3Y5MGCYWVHDJI%2Fprofile%2Fstatus&format%3Djson%26oauth_consumer_key%3Ddj0yJmk9TXZDWVpNVVdGaVFmJmQ9WVdrOWMweHZXbkZLTkhVbWNHbzlNVEl5TWprd05qUTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0wMw--%26oauth_nonce%3D85544c798737ff63f8e7ccf5b69cea14%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1273027403%26oauth_version%3D1.0%26realm%3Dyahooapis.com","signature":"Vm0eEc4Lv55yTZVjDNFZE7Gvjeg=","httpRequest":{"verb":"GET","url":"http://social.yahooapis.com/v1/user/A6ROU63MXWDCW3Y5MGCYWVHDJI/profile/status?format=json","body":"","headers":[{"Authorization":"OAuth oauth_consumer_key='dj0yJmk9TXZDWVpNVVdGaVFmJmQ9WVdrOWMweHZXbkZLTkhVbWNHbzlNVEl5TWprd05qUTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0wMw--', oauth_nonce='85544c798737ff63f8e7ccf5b69cea14', oauth_signature='GNbtwCH4xkssCEOefhmJ1ShFjVE%3D', oauth_signature_method='HMAC-SHA1', oauth_timestamp='1273027403', oauth_token='A%253DibbgGQ_ijjFUE8Bc6xXMGQfAGXjZL2_1iUZYZXvpWt4YwvvHxOiuyHHLs1NlG8oZylNkAyB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test | |
{ | |
private static final String MD5 = "MD5"; | |
private static final String UTF_8 = "UTF-8"; | |
public static void main(String[] args) throws Exception | |
{ | |
String email = "[email protected]"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test | |
{ | |
public static void main(String[] args) | |
{ | |
String bcookie = "v=1&aeebce0d-d7c5-4b06-9dbc-78d4ac46a88f"; | |
System.out.println(Math.abs(bcookie.hashCode())); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/org/scribe/utils/Preconditions.java b/src/main/java/org/scribe/utils/Preconditions.java | |
index de22b4e..06bd151 100644 | |
--- a/src/main/java/org/scribe/utils/Preconditions.java | |
+++ b/src/main/java/org/scribe/utils/Preconditions.java | |
@@ -1,10 +1,13 @@ | |
package org.scribe.utils; | |
+import java.util.regex.Pattern; | |
+ | |
import org.scribe.model.OAuthConstants; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var objectCreator = function () { | |
var value = 0; | |
return { | |
increment: function (inc) { | |
value += typeof inc === 'number' ? inc : 1; | |
}, | |
getValue: function () { | |
return value; | |
} |
OlderNewer