public class HttpBasicAuth extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
HttpBasicAuth() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword() |
String |
getUsername() |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
void |
setCredentials(String username,
String password) |
void |
setPassword(String password) |
void |
setUsername(String username) |
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2020. All rights reserved.