public abstract class HttpCredentialsFetcher extends Object implements CredentialsFetcher
| 构造器和说明 |
|---|
HttpCredentialsFetcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract 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.
|
abstract 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.
|
public abstract URL buildUrl() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherbuildUrl 在接口中 CredentialsFetchercom.aliyuncs.exceptions.ClientExceptionpublic abstract Credentials parse(com.aliyuncs.http.HttpResponse response) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherparse 在接口中 CredentialsFetcherresponse - http response.com.aliyuncs.exceptions.ClientExceptionpublic Credentials fetch() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherfetch 在接口中 CredentialsFetchercom.aliyuncs.exceptions.ClientExceptionpublic com.aliyuncs.http.HttpResponse send(com.aliyuncs.http.HttpRequest request)
throws IOException
CredentialsFetchersend 在接口中 CredentialsFetcherrequest - http request.IOExceptionpublic Credentials fetch(int retryTimes) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherfetch 在接口中 CredentialsFetcherretryTimes - retry times.com.aliyuncs.exceptions.ClientExceptionCopyright © 2021. All Rights Reserved.