com.aliyun.oss.common.auth

## 类 HttpCredentialsFetcher

- java.lang.Object
- - com.aliyun.oss.common.auth.HttpCredentialsFetcher

- 所有已实现的接口:
    CredentialsFetcher
  直接已知子类:
    CustomSessionCredentialsFetcher, InstanceProfileCredentialsFetcher

      public abstract class HttpCredentialsFetcher
      extends Object
      implements CredentialsFetcher

- - ### 构造器概要

    构造器
    构造器和说明
    `HttpCredentialsFetcher()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `abstract URL` | `buildUrl()` 构造授权服务器的URL
    `Credentials` | `fetch()` 从授权服务器获取授权
    `Credentials` | `fetch(int retryTimes)` 从授权服务器获取授权
    `abstract Credentials` | `parse(com.aliyuncs.http.HttpResponse response)` 解析授权服务器返回的授权信息，解析为Credentials
    `com.aliyuncs.http.HttpResponse` | `send(com.aliyuncs.http.HttpRequest request)` 发送HTTP请求到授权服务器

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### HttpCredentialsFetcher

          public HttpCredentialsFetcher()

  - ### 方法详细资料

    - #### buildUrl

          public abstract URL buildUrl()
                                throws com.aliyuncs.exceptions.ClientException

      从接口复制的说明: `CredentialsFetcher`
      构造授权服务器的URL
      指定者:
        `buildUrl` 在接口中 `CredentialsFetcher`
      返回:
        the url of authorization server
      抛出:
        `com.aliyuncs.exceptions.ClientException`

    - #### parse

          public abstract Credentials parse(com.aliyuncs.http.HttpResponse response)
                                     throws com.aliyuncs.exceptions.ClientException

      从接口复制的说明: `CredentialsFetcher`
      解析授权服务器返回的授权信息，解析为Credentials
      指定者:
        `parse` 在接口中 `CredentialsFetcher`
      参数:
        `response` - 授权服务器返回的授权信息
      返回:
      抛出:
        `com.aliyuncs.exceptions.ClientException`

    - #### fetch

          public Credentials fetch()
                            throws com.aliyuncs.exceptions.ClientException

      从接口复制的说明: `CredentialsFetcher`
      从授权服务器获取授权
      指定者:
        `fetch` 在接口中 `CredentialsFetcher`
      返回:
        credentials
      抛出:
        `com.aliyuncs.exceptions.ClientException`

    - #### send

          public com.aliyuncs.http.HttpResponse send(com.aliyuncs.http.HttpRequest request)
                                              throws IOException

      从接口复制的说明: `CredentialsFetcher`
      发送HTTP请求到授权服务器
      指定者:
        `send` 在接口中 `CredentialsFetcher`
      参数:
        `request` - HTTP请求
      返回:
        http response
      抛出:
        `IOException`

    - #### fetch

          public Credentials fetch(int retryTimes)
                            throws com.aliyuncs.exceptions.ClientException

      从接口复制的说明: `CredentialsFetcher`
      从授权服务器获取授权
      指定者:
        `fetch` 在接口中 `CredentialsFetcher`
      参数:
        `retryTimes` - 失败重试此时
      返回:
        credentials
      抛出:
        `com.aliyuncs.exceptions.ClientException`

Copyright © 2020. All Rights Reserved.