Package 

Class AuthInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class AuthInterceptor
     implements Interceptor
                        

    OkHttp Interceptor which deals with managing session information and attaching authentication headers.

    • Method Summary

      Modifier and Type Method Description
      final Unit setListener(AuthInterceptor.Listener listener) Associates event listener with current object.
      final Unit finish() Call to cleanup any running tasks before the object is GCed to avoid any leaks.
      Response intercept(Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait