public abstract class HttpCredentialsFetcher extends Object implements CredentialsFetcher
构造器和说明 |
---|
HttpCredentialsFetcher() |
限定符和类型 | 方法和说明 |
---|---|
abstract URL |
buildUrl()
构造授权服务器的URL
|
Credentials |
fetch()
从授权服务器获取授权
|
Credentials |
fetch(int retryTimes)
从授权服务器获取授权
|
abstract Credentials |
parse(com.aliyuncs.http.HttpResponse response)
解析授权服务器返回的授权信息,解析为Credentials
|
com.aliyuncs.http.HttpResponse |
send(com.aliyuncs.http.HttpRequest request)
发送HTTP请求到授权服务器
|
public abstract URL buildUrl() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
buildUrl
在接口中 CredentialsFetcher
com.aliyuncs.exceptions.ClientException
public abstract Credentials parse(com.aliyuncs.http.HttpResponse response) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
parse
在接口中 CredentialsFetcher
response
- 授权服务器返回的授权信息com.aliyuncs.exceptions.ClientException
public Credentials fetch() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
fetch
在接口中 CredentialsFetcher
com.aliyuncs.exceptions.ClientException
public com.aliyuncs.http.HttpResponse send(com.aliyuncs.http.HttpRequest request) throws IOException
CredentialsFetcher
send
在接口中 CredentialsFetcher
request
- HTTP请求IOException
public Credentials fetch(int retryTimes) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
fetch
在接口中 CredentialsFetcher
retryTimes
- 失败重试此时com.aliyuncs.exceptions.ClientException
Copyright © 2019. All Rights Reserved.