public class CustomSessionCredentialsFetcher extends HttpCredentialsFetcher
Constructor and Description |
---|
CustomSessionCredentialsFetcher(String ossAuthServerHost) |
Modifier and Type | Method and Description |
---|---|
URL |
buildUrl()
Constructs the url of authorization server.
|
Credentials |
parse(com.aliyuncs.http.HttpResponse response)
Parses the response to get credentials.
|
fetch, fetch, send
public CustomSessionCredentialsFetcher(String ossAuthServerHost)
public URL buildUrl() throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
buildUrl
in interface CredentialsFetcher
buildUrl
in class HttpCredentialsFetcher
com.aliyuncs.exceptions.ClientException
- If any errors occurred in OSS while processing the request.public Credentials parse(com.aliyuncs.http.HttpResponse response) throws com.aliyuncs.exceptions.ClientException
CredentialsFetcher
parse
in interface CredentialsFetcher
parse
in class HttpCredentialsFetcher
response
- http response.com.aliyuncs.exceptions.ClientException
- If any errors occurred in OSS while processing the request.Copyright © 2023. All Rights Reserved.