Class BasicAuthInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class BasicAuthInterceptor
    extends Object
    implements okhttp3.Interceptor
    • Constructor Detail

      • BasicAuthInterceptor

        public BasicAuthInterceptor​(String user,
                                    String password)
        Parameters:
        user - UserName String
        password - Password String
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException