public interface CredentialsFetcher
| Modifier and Type | Method and Description |
|---|---|
URL |
buildUrl()
Constructs the url of authorization server.
|
Credentials |
fetch()
Fetches credentials from the authorization server.
|
Credentials |
fetch(int retryTimes)
Fetches credentials from the authorization server.
|
Credentials |
parse(com.aliyuncs.http.HttpResponse response)
Parses the response to get credentials.
|
com.aliyuncs.http.HttpResponse |
send(com.aliyuncs.http.HttpRequest request)
Sends http request to authorization server.
|
URL buildUrl() throws com.aliyuncs.exceptions.ClientException
com.aliyuncs.exceptions.ClientExceptioncom.aliyuncs.http.HttpResponse send(com.aliyuncs.http.HttpRequest request)
throws IOException
request - http request.IOExceptionCredentials parse(com.aliyuncs.http.HttpResponse response) throws com.aliyuncs.exceptions.ClientException
response - http response.com.aliyuncs.exceptions.ClientExceptionCredentials fetch() throws com.aliyuncs.exceptions.ClientException
com.aliyuncs.exceptions.ClientExceptionCredentials fetch(int retryTimes) throws com.aliyuncs.exceptions.ClientException
retryTimes - retry times.com.aliyuncs.exceptions.ClientExceptionCopyright © 2021. All Rights Reserved.