oauth.signpost.commonshttp
Class CommonsHttpOAuthProvider
java.lang.Object
oauth.signpost.AbstractOAuthProvider
oauth.signpost.commonshttp.CommonsHttpOAuthProvider
- All Implemented Interfaces:
- Serializable, OAuthProvider
public class CommonsHttpOAuthProvider
- extends AbstractOAuthProvider
This implementation uses the Apache Commons HttpClient 4.x HTTP
implementation to fetch OAuth tokens from a service provider. Android users
should use this provider implementation in favor of the default one, since
the latter is known to cause problems with Android's Apache Harmony
underpinnings.
- Author:
- Matthias Kaeppler
- See Also:
- Serialized Form
| Methods inherited from class oauth.signpost.AbstractOAuthProvider |
getAccessTokenEndpointUrl, getAuthorizationWebsiteUrl, getRequestHeaders, getRequestTokenEndpointUrl, getResponseParameter, getResponseParameters, isOAuth10a, retrieveAccessToken, retrieveRequestToken, setOAuth10a, setRequestHeader, setResponseParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsHttpOAuthProvider
public CommonsHttpOAuthProvider(String requestTokenEndpointUrl,
String accessTokenEndpointUrl,
String authorizationWebsiteUrl)
retrieveToken
protected void retrieveToken(OAuthConsumer consumer,
String endpointUrl)
throws OAuthMessageSignerException,
OAuthCommunicationException,
OAuthNotAuthorizedException,
OAuthExpectationFailedException
- Specified by:
retrieveToken in class AbstractOAuthProvider
- Throws:
OAuthMessageSignerException
OAuthCommunicationException
OAuthNotAuthorizedException
OAuthExpectationFailedException
Copyright © 2010. All Rights Reserved.