Class OkHttpOAuth1Interceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class OkHttpOAuth1Interceptor
    extends Object
    implements okhttp3.Interceptor
    An OkHttp3 interceptor for computing and adding an OAuth1 authorization header to HTTP requests.
    • Constructor Detail

      • OkHttpOAuth1Interceptor

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

      • intercept

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