public class TokenAuthMethod extends AbstractAuthMethod
| Constructor and Description |
|---|
TokenAuthMethod(java.lang.String apiKey,
java.lang.String apiSecret) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.RequestBuilder |
apply(org.apache.http.client.methods.RequestBuilder request) |
org.apache.http.client.methods.RequestBuilder |
applyAsBasicAuth(org.apache.http.client.methods.RequestBuilder request)
Apply the authentication to the header as basic authentication.
|
org.apache.http.client.methods.RequestBuilder |
applyAsJsonProperties(org.apache.http.client.methods.RequestBuilder request)
Apply the authentication by adding it to the entity payload.
|
int |
getSortKey() |
compareTopublic TokenAuthMethod(java.lang.String apiKey, java.lang.String apiSecret)
public org.apache.http.client.methods.RequestBuilder apply(org.apache.http.client.methods.RequestBuilder request)
public org.apache.http.client.methods.RequestBuilder applyAsBasicAuth(org.apache.http.client.methods.RequestBuilder request)
AuthMethodapplyAsBasicAuth in interface AuthMethodapplyAsBasicAuth in class AbstractAuthMethodrequest - The request being builtpublic org.apache.http.client.methods.RequestBuilder applyAsJsonProperties(org.apache.http.client.methods.RequestBuilder request)
AuthMethodapplyAsJsonProperties in interface AuthMethodapplyAsJsonProperties in class AbstractAuthMethodrequest - The request being builtpublic int getSortKey()
getSortKey in interface AuthMethodgetSortKey in class AbstractAuthMethod