Class OkHttp2OAuth1Interceptor

  • All Implemented Interfaces:
    com.squareup.okhttp.Interceptor

    public class OkHttp2OAuth1Interceptor
    extends Object
    implements com.squareup.okhttp.Interceptor
    An OkHttp2 interceptor for computing and adding an OAuth1 authorization header to HTTP requests.
    • Constructor Detail

      • OkHttp2OAuth1Interceptor

        public OkHttp2OAuth1Interceptor​(String consumerKey,
                                        PrivateKey signingKey)
    • Method Detail

      • intercept

        public com.squareup.okhttp.Response intercept​(com.squareup.okhttp.Interceptor.Chain chain)
                                               throws IOException
        Specified by:
        intercept in interface com.squareup.okhttp.Interceptor
        Throws:
        IOException