Class OkHttp2OAuth1Interceptor
- java.lang.Object
-
- com.mastercard.developer.interceptors.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 Summary
Constructors Constructor Description OkHttp2OAuth1Interceptor(String consumerKey, PrivateKey signingKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.squareup.okhttp.Responseintercept(com.squareup.okhttp.Interceptor.Chain chain)
-
-
-
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:
interceptin interfacecom.squareup.okhttp.Interceptor- Throws:
IOException
-
-