Class HttpBasicAuth

  • All Implemented Interfaces:
    okhttp3.Interceptor

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

      • HttpBasicAuth

        public HttpBasicAuth()
    • Method Detail

      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • setCredentials

        public void setCredentials​(String username,
                                   String password)
      • intercept

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