-
- All Implemented Interfaces:
-
okhttp3.Interceptor
public final class AuthInterceptor implements InterceptorOkHttp Interceptor which deals with managing session information and attaching authentication headers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAuthInterceptor.Companionpublic interfaceAuthInterceptor.ListenerInterface definition for a callback to be invoked on authentication events.
-
Method Summary
Modifier and Type Method Description final UnitsetListener(AuthInterceptor.Listener listener)Associates event listener with current object. final Unitfinish()Call to cleanup any running tasks before the object is GCed to avoid any leaks. Responseintercept(Interceptor.Chain chain)-
-
Method Detail
-
setListener
final Unit setListener(AuthInterceptor.Listener listener)
Associates event listener with current object.
-
finish
final Unit finish()
Call to cleanup any running tasks before the object is GCed to avoid any leaks.
-
intercept
Response intercept(Interceptor.Chain chain)
-
-
-
-