Home
last modified time | relevance | path

Searched refs:OAuth (Results 1 – 25 of 27) sorted by relevance

12

/external/oauth/core/src/main/java/net/oauth/
DOAuthMessage.java58 this.parameters.add(new OAuth.Parameter( in OAuthMessage()
97 addParameter(new OAuth.Parameter(key, value)); in addParameter()
116 return getParameter(OAuth.OAUTH_CONSUMER_KEY); in getConsumerKey()
120 return getParameter(OAuth.OAUTH_TOKEN); in getToken()
124 return getParameter(OAuth.OAUTH_SIGNATURE_METHOD); in getSignatureMethod()
128 return getParameter(OAuth.OAUTH_SIGNATURE); in getSignature()
134 parameterMap = OAuth.newMap(parameters); in getParameterMap()
240 … OAuthProblemException problem = new OAuthProblemException(OAuth.Problems.PARAMETER_ABSENT); in requireParameters()
241 … problem.setParameter(OAuth.Problems.OAUTH_PARAMETERS_ABSENT, OAuth.percentEncode(absent)); in requireParameters()
255 final Map<String, String> pMap = OAuth.newMap(parameters); in addRequiredParameters()
[all …]
DSimpleOAuthValidator.java42 this(DEFAULT_TIMESTAMP_WINDOW, Double.parseDouble(OAuth.VERSION_1_0)); in SimpleOAuthValidator()
74 String versionString = message.getParameter(OAuth.OAUTH_VERSION); in validateVersion()
88 message.requireParameters(OAuth.OAUTH_TIMESTAMP, OAuth.OAUTH_NONCE); in validateTimestampAndNonce()
89 long timestamp = Long.parseLong(message.getParameter(OAuth.OAUTH_TIMESTAMP)) * 1000L; in validateTimestampAndNonce()
102 message.requireParameters(OAuth.OAUTH_CONSUMER_KEY, in validateSignature()
103 OAuth.OAUTH_SIGNATURE_METHOD, OAuth.OAUTH_SIGNATURE); in validateSignature()
DOAuth.java34 public class OAuth { class
150 p.append(OAuth.percentEncode(toString(v))); in percentEncode()
DOAuthAccessor.java87 … message.getHeaders().add(new OAuth.Parameter(HttpMessage.ACCEPT_ENCODING, accepted.toString())); in newRequestMessage()
/external/oauth/core/src/main/java/net/oauth/client/
DOAuthClient.java29 import net.oauth.OAuth;
151 p.add(new OAuth.Parameter("oauth_accessor_secret", in getRequestToken()
159 accessor.requestToken = response.getParameter(OAuth.OAUTH_TOKEN); in getRequestToken()
160 accessor.tokenSecret = response.getParameter(OAuth.OAUTH_TOKEN_SECRET); in getRequestToken()
161 response.requireParameters(OAuth.OAUTH_TOKEN, OAuth.OAUTH_TOKEN_SECRET); in getRequestToken()
187 parameters = OAuth.newList(OAuth.OAUTH_TOKEN, accessor.requestToken); in getAccessToken()
188 } else if (!OAuth.newMap(parameters).containsKey(OAuth.OAUTH_TOKEN)) { in getAccessToken()
190 p.add(new OAuth.Parameter(OAuth.OAUTH_TOKEN, accessor.requestToken)); in getAccessToken()
196 response.requireParameters(OAuth.OAUTH_TOKEN, OAuth.OAUTH_TOKEN_SECRET); in getAccessToken()
197 accessor.accessToken = response.getParameter(OAuth.OAUTH_TOKEN); in getAccessToken()
[all …]
DOAuthResponseMessage.java22 import net.oauth.OAuth;
43 for (OAuth.Parameter parameter : decodeAuthorization(header.getValue())) { in OAuthResponseMessage()
72 addParameters(OAuth.decodeForm(body.trim())); in completeParameters()
DURLConnectionResponse.java26 import net.oauth.OAuth;
82 headers.add(new OAuth.Parameter(name, value)); in getHeaders()
89 headers.add(new OAuth.Parameter(CONTENT_TYPE, connection in getHeaders()
/external/oauth/core/src/main/java/net/oauth/signature/
DOAuthSignatureMethod.java28 import net.oauth.OAuth;
52 message.addParameter(new OAuth.Parameter("oauth_signature", in sign()
150 parameters.addAll(OAuth.decodeForm(message.URL.substring(q + 1))); in getBaseString()
154 return OAuth.percentEncode(message.method.toUpperCase()) + '&' in getBaseString()
155 + OAuth.percentEncode(normalizeUrl(url)) + '&' in getBaseString()
156 + OAuth.percentEncode(normalizeParameters(parameters)); in getBaseString()
193 return OAuth.formEncode(getParameters(p)); in normalizeParameters()
208 message.requireParameters(OAuth.OAUTH_SIGNATURE_METHOD); in newSigner()
228 String acceptable = OAuth.percentEncode(NAME_TO_CLASS.keySet()); in newMethod()
266 this.key = OAuth.percentEncode(n) + ' ' + OAuth.percentEncode(v); in ComparableParameter()
DHMAC_SHA1.java27 import net.oauth.OAuth;
67 String keyString = OAuth.percentEncode(getConsumerSecret()) in computeSignature()
68 + '&' + OAuth.percentEncode(getTokenSecret()); in computeSignature()
81 private static final String ENCODING = OAuth.ENCODING;
DPLAINTEXT.java19 import net.oauth.OAuth;
41 signature = OAuth.percentEncode(getConsumerSecret()) + '&' in getSignature()
42 + OAuth.percentEncode(getTokenSecret()); in getSignature()
DRSA_SHA1.java32 import net.oauth.OAuth;
193 byte[] signature = sign(baseString.getBytes(OAuth.ENCODING)); in getSignature()
207 baseString.getBytes(OAuth.ENCODING)); in isValid()
/external/libweave/examples/daemon/
DREADME.md34 - Go to [OAuth 2.0 Playground](https://developers.google.com/oauthplayground/)
95 - Go to [OAuth 2.0 Playground](https://developers.google.com/oauthplayground/)
116 - Verify the command history with [OAuth 2.0 Playground](https://developers.google.com/oauthplaygro…
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpMethodResponse.java25 import net.oauth.OAuth;
85 headers.add(new OAuth.Parameter(header.getName(), header.getValue())); in getHeaders()
/external/chromium-trace/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/
DREADME.md4 an auth plugin for the [boto] auth plugin framework for use with [OAuth 2.0]
44 [OAuth 2.0]: https://developers.google.com/accounts/docs/OAuth2Login
/external/curl/tests/data/
Dtest87039 POP3 OAuth 2.0 authentication
Dtest87439 POP3 OAuth 2.0 authentication with initial response
Dtest82838 IMAP OAuth 2.0 authentication with initial response
Dtest82437 IMAP OAuth 2.0 authentication
Dtest90829 SMTP OAuth 2.0 authentication
Dtest92229 SMTP OAuth 2.0 authentication with initial response
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/
DREADME.md5 This is a client library for accessing resources protected by OAuth 2.0.
/external/autotest/client/common_lib/cros/fake_device_server/
Doauth.py21 class OAuth(object): class
Dserver.py48 oauth_handler = oauth.OAuth(fail_control_handler)
Ddevices_unittest.py29 self.oauth = oauth.OAuth(self.fail_control)
Dregistration_tickets_unittest.py32 self.oauth = oauth.OAuth(self.fail_control)

12