org.rometools.propono.atom.client
Class OAuthStrategy
java.lang.Object
org.rometools.propono.atom.client.OAuthStrategy
- All Implemented Interfaces:
- AuthStrategy
public class OAuthStrategy
- extends Object
- implements AuthStrategy
Strategy for using OAuth.
Method Summary |
void |
addAuthentication(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HttpMethodBase method)
Add authentication credenticals, tokens, etc. to HTTP method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuthStrategy
public OAuthStrategy(String username,
String key,
String secret,
String keyType,
String reqUrl,
String authzUrl,
String accessUrl)
throws ProponoException
- Create OAuth authentcation strategy and negotiate with services to
obtain access token to be used in subsequent calls.
- Parameters:
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 service
- Throws:
ProponoException
- on any sort of initialization error
addAuthentication
public void addAuthentication(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HttpMethodBase method)
throws ProponoException
- Description copied from interface:
AuthStrategy
- Add authentication credenticals, tokens, etc. to HTTP method
- Specified by:
addAuthentication
in interface AuthStrategy
- Throws:
ProponoException
Copyright © 2007-2013 ROME Project. All Rights Reserved.