public abstract class HttpCredentialsFetcher extends Object implements CredentialsFetcher
| 构造器和说明 |
|---|
HttpCredentialsFetcher() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract 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
|
abstract 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
|
public abstract URL buildUrl() throws ClientException
CredentialsFetcherbuildUrl 在接口中 CredentialsFetcherClientExceptionpublic abstract ServiceCredentials parse(HttpResponse response) throws ClientException
CredentialsFetcherparse 在接口中 CredentialsFetcherresponse - Authorization information returned by the authorization serverClientExceptionpublic ServiceCredentials fetch() throws ClientException
CredentialsFetcherfetch 在接口中 CredentialsFetcherClientExceptionpublic HttpResponse send(HttpRequest request) throws IOException
CredentialsFetchersend 在接口中 CredentialsFetcherrequest - HTTP requestIOExceptionpublic ServiceCredentials fetch(int retryTimes) throws ClientException
CredentialsFetcherfetch 在接口中 CredentialsFetcherretryTimes - retry times on failureClientExceptionCopyright © 2025. All Rights Reserved.