public abstract class HttpCredentialsFetcher extends Object implements CredentialsFetcher
| Constructor and Description |
|---|
HttpCredentialsFetcher() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface CredentialsFetchercom.aliyuncs.exceptions.ClientException - If any errors occurred in OSS while processing the request.public abstract Credentials parse(com.aliyuncs.http.HttpResponse response) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherparse in interface CredentialsFetcherresponse - http response.com.aliyuncs.exceptions.ClientException - If any errors occurred in OSS while processing the request.public Credentials fetch() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherfetch in interface CredentialsFetchercom.aliyuncs.exceptions.ClientException - If any errors occurred in OSS while processing the request.public com.aliyuncs.http.HttpResponse send(com.aliyuncs.http.HttpRequest request)
throws IOException
CredentialsFetchersend in interface CredentialsFetcherrequest - http request.IOException - An IO errors occurred while sending the request to authorization server.public Credentials fetch(int retryTimes) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcherfetch in interface CredentialsFetcherretryTimes - retry times.com.aliyuncs.exceptions.ClientException - If any errors occurred in OSS while processing the request.Copyright © 2023. All Rights Reserved.