Class OkHttpOAuth1Interceptor
- java.lang.Object
-
- com.mastercard.developer.interceptors.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 Summary
Constructors Constructor Description OkHttpOAuth1Interceptor(String consumerKey, PrivateKey signingKey)
-
-
-
Constructor Detail
-
OkHttpOAuth1Interceptor
public OkHttpOAuth1Interceptor(String consumerKey, PrivateKey signingKey)
-
-
Method Detail
-
intercept
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
-