@Deprecated public class OAuthStrategy extends Object implements AuthStrategy
Constructor and Description |
---|
OAuthStrategy(String username,
String key,
String secret,
String keyType,
String reqUrl,
String authzUrl,
String accessUrl)
Deprecated.
Create OAuth authentcation strategy and negotiate with services to obtain access token to be
used in subsequent calls.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthentication(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HttpMethodBase method)
Deprecated.
Add authentication credenticals, tokens, etc.
|
public OAuthStrategy(String username, String key, String secret, String keyType, String reqUrl, String authzUrl, String accessUrl) throws ProponoException
username
- Username to be used in authenticationkey
- Consumer keysecret
- Consumer secretkeyType
- Key type (e.g. "HMAC-SHA1")reqUrl
- URL of request token serviceauthzUrl
- URL of authorize serviceaccessUrl
- URL of acess token serviceProponoException
- on any sort of initialization errorpublic void addAuthentication(org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HttpMethodBase method) throws ProponoException
AuthStrategy
addAuthentication
in interface AuthStrategy
ProponoException
Copyright © 2020. All rights reserved.