Package groovyx.net.http
Class AuthConfig.OAuthSigner
- java.lang.Object
-
- groovyx.net.http.AuthConfig.OAuthSigner
-
- All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
- Enclosing class:
- AuthConfig
static class AuthConfig.OAuthSigner extends java.lang.Object implements org.apache.http.HttpRequestInterceptor
This class is used to sign all requests via anHttpRequestInterceptor
until the context-aware AuthScheme is released in HttpClient 4.1.- Since:
- 0.5.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AuthConfig.OAuthSigner.OAuthRequestAdapter
-
Field Summary
Fields Modifier and Type Field Description protected oauth.signpost.OAuthConsumer
oauth
-
Constructor Summary
Constructors Constructor Description OAuthSigner(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String accessToken, java.lang.String secretToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext ctx)
-
-
-
Method Detail
-
process
public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext ctx) throws org.apache.http.HttpException, java.io.IOException
- Specified by:
process
in interfaceorg.apache.http.HttpRequestInterceptor
- Throws:
org.apache.http.HttpException
java.io.IOException
-
-