Class AuthenticationInterceptor
- java.lang.Object
-
- com.abiquo.apiclient.interceptors.AuthenticationInterceptor
-
- All Implemented Interfaces:
com.squareup.okhttp.Interceptor
public class AuthenticationInterceptor extends Object implements com.squareup.okhttp.Interceptor
Authenticates the requests using the configuredAuthenticationstrategy.- Author:
- Ignasi Barrera, Sergi Castro
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInterceptor(Authentication authentication, RestClient client)
-
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
-
AuthenticationInterceptor
public AuthenticationInterceptor(Authentication authentication, RestClient client)
-
-
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
-
-