Package com.abiquo.apiclient.auth
Class OAuthAuthentication
- java.lang.Object
-
- com.abiquo.apiclient.auth.OAuthAuthentication
-
- All Implemented Interfaces:
Authentication
public class OAuthAuthentication extends Object implements Authentication
OAuth 1.0a authentication.- Author:
- Ignasi Barrera
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowAbiquoToken()com.squareup.okhttp.Requestauthenticate(com.squareup.okhttp.Request unauthenticated)Authenticates the given request.static OAuthAuthenticationoauth(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
-
-
-
Method Detail
-
oauth
public static OAuthAuthentication oauth(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
-
allowAbiquoToken
public boolean allowAbiquoToken()
- Specified by:
allowAbiquoTokenin interfaceAuthentication
-
authenticate
public com.squareup.okhttp.Request authenticate(com.squareup.okhttp.Request unauthenticated)
Description copied from interface:AuthenticationAuthenticates the given request.- Specified by:
authenticatein interfaceAuthentication- Parameters:
unauthenticated- The request to authenticate.- Returns:
- The authenticated request.
-
-