Skip to content

okhttp / okhttp3 / Authenticator

Authenticator

interface Authenticator

Functions

Name Summary
authenticate Returns a request that includes a credential to satisfy an authentication challenge in response. Returns null if the challenge cannot be satisfied.abstract fun authenticate(route:Route?, response:Response):Request?

Companion Object Properties

Name Summary
JAVA_NET_AUTHENTICATOR An authenticator that uses the java.net.Authenticator global authenticator.val JAVA_NET_AUTHENTICATOR:Authenticator
NONE An authenticator that knows no credentials and makes no attempt to authenticate.val NONE:Authenticator