com.aliyun.oss.common.auth

## 类 InstanceProfileCredentials

- java.lang.Object
- - com.aliyun.oss.common.auth.BasicCredentials
  - - com.aliyun.oss.common.auth.InstanceProfileCredentials

- 所有已实现的接口:
    Credentials

      public class InstanceProfileCredentials
      extends BasicCredentials

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.common.auth.BasicCredentials

      `accessKeyId, accessKeySecret, expiredDurationSeconds, expiredFactor, securityToken, startedTimeInMilliSeconds`

  - ### 构造器概要

    构造器
    构造器和说明
    `InstanceProfileCredentials(String accessKeyId, String accessKeySecret, String sessionToken, String expiration)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `isExpired()`
    `void` | `setLastFailedRefreshTime()`
    `boolean` | `shouldRefresh()`
    `boolean` | `willSoonExpire()`
    `InstanceProfileCredentials` | `withExpiredDuration(long expiredDurationSeconds)`
    `InstanceProfileCredentials` | `withExpiredFactor(double expiredFactor)`

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

      `getAccessKeyId, getSecretAccessKey, getSecurityToken, useSecurityToken`

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

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

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

    - #### InstanceProfileCredentials

          public InstanceProfileCredentials(String accessKeyId,
                                    String accessKeySecret,
                                    String sessionToken,
                                    String expiration)

  - ### 方法详细资料

    - #### withExpiredFactor

          public InstanceProfileCredentials withExpiredFactor(double expiredFactor)

      覆盖:
        `withExpiredFactor` 在类中 `BasicCredentials`

    - #### withExpiredDuration

          public InstanceProfileCredentials withExpiredDuration(long expiredDurationSeconds)

      覆盖:
        `withExpiredDuration` 在类中 `BasicCredentials`

    - #### willSoonExpire

          public boolean willSoonExpire()

      覆盖:
        `willSoonExpire` 在类中 `BasicCredentials`

    - #### isExpired

          public boolean isExpired()

    - #### shouldRefresh

          public boolean shouldRefresh()

    - #### setLastFailedRefreshTime

          public void setLastFailedRefreshTime()

Copyright © 2020. All Rights Reserved.