Interface RestClientAuthenticator
- All Superinterfaces:
okhttp3.Authenticator,okhttp3.Interceptor
public interface RestClientAuthenticator
extends okhttp3.Authenticator, okhttp3.Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Authenticator
okhttp3.Authenticator.CompanionNested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Authenticator
Companion, JAVA_NET_AUTHENTICATOR, NONEFields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionvoidonLogout()Logs out the client.voidonUsernameAndPassword(String username, String password) When passing credentials.Methods inherited from interface okhttp3.Authenticator
authenticateMethods inherited from interface okhttp3.Interceptor
intercept
-
Method Details
-
onUsernameAndPassword
When passing credentials.- Parameters:
username-password-
-
onLogout
void onLogout()Logs out the client.
-