com.aliyun.oss.common.auth

## 类 InstanceProfileCredentialsFetcher

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

- 所有已实现的接口:
    CredentialsFetcher

      public class InstanceProfileCredentialsFetcher
      extends HttpCredentialsFetcher

- - ### 构造器概要

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

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `URL` | `buildUrl()` 构造授权服务器的URL
    `Credentials` | `parse(com.aliyuncs.http.HttpResponse response)` 解析授权服务器返回的授权信息，解析为Credentials
    `void` | `setRoleName(String roleName)`
    `InstanceProfileCredentialsFetcher` | `withRoleName(String roleName)`

    - ### 从类继承的方法 com.aliyun.oss.common.auth.HttpCredentialsFetcher

      `fetch, fetch, send`

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

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

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

    - #### InstanceProfileCredentialsFetcher

          public InstanceProfileCredentialsFetcher()

  - ### 方法详细资料

    - #### setRoleName

          public void setRoleName(String roleName)

    - #### withRoleName

          public InstanceProfileCredentialsFetcher withRoleName(String roleName)

    - #### buildUrl

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

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

    - #### parse

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

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

Copyright © 2020. All Rights Reserved.