public class TokenCredentials extends Object implements ServiceClientCredentials
| Constructor and Description |
|---|
TokenCredentials(String scheme,
String token)
Initializes a new instance of the TokenCredentials.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
Apply the credentials to the HTTP client builder.
|
protected String |
getScheme()
Get the authentication scheme.
|
protected String |
getToken(okhttp3.Request request)
Get the secure token.
|
protected String getToken(okhttp3.Request request) throws IOException
request - the context of the HTTP requestIOException - exception thrown from token acquisition operations.protected String getScheme()
public void applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
ServiceClientCredentialsapplyCredentialsFilter in interface ServiceClientCredentialsclientBuilder - the builder for building up an OkHttpClientCopyright © 2019. All rights reserved.