Class 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 an HttpRequestInterceptor until the context-aware AuthScheme is released in HttpClient 4.1.
    Since:
    0.5.1
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • oauth

        protected oauth.signpost.OAuthConsumer oauth
    • Constructor Detail

      • OAuthSigner

        public OAuthSigner​(java.lang.String consumerKey,
                           java.lang.String consumerSecret,
                           java.lang.String accessToken,
                           java.lang.String secretToken)
    • 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 interface org.apache.http.HttpRequestInterceptor
        Throws:
        org.apache.http.HttpException
        java.io.IOException