public interface CredentialsFetcher
| 限定符和类型 | 方法和说明 |
|---|---|
URL |
buildUrl()
Construct the authorization server URL
|
ServiceCredentials |
fetch()
Obtain authorization from the authorization server
|
ServiceCredentials |
fetch(int retryTimes)
Obtain authorization from the authorization server
|
Map<String,String> |
getExtraHeaders()
Get extra headers for the HTTP request.
|
ServiceCredentials |
parse(HttpResponse response)
Parse the authorization information returned by the authorization server and convert it into Credentials
|
HttpResponse |
send(HttpRequest request)
Sends an HTTP request to the authorization server
|
URL buildUrl() throws ClientException
ClientExceptionHttpResponse send(HttpRequest request) throws IOException
request - HTTP requestIOExceptionServiceCredentials parse(HttpResponse response) throws ClientException
response - Authorization information returned by the authorization serverClientExceptionServiceCredentials fetch() throws ClientException
ClientExceptionServiceCredentials fetch(int retryTimes) throws ClientException
retryTimes - retry times on failureClientExceptionCopyright © 2025. All Rights Reserved.