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