com.aliyun.oss.common.auth

## 类 STSKeyPairSessionCredentialsProvider

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

- 所有已实现的接口:
    CredentialsProvider

      public class STSKeyPairSessionCredentialsProvider
      extends Object
      implements CredentialsProvider

  STSKeyPairSessionCredentialsProvider implementation that uses the RSA key pair to create temporary, short-lived sessions to use for authentication.

- - ### 构造器概要

    构造器
    构造器和说明
    `STSKeyPairSessionCredentialsProvider(com.aliyuncs.auth.KeyPairCredentials keyPairCredentials, com.aliyuncs.profile.IClientProfile profile)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `Credentials` | `getCredentials()`
    `void` | `setCredentials(Credentials creds)`
    `STSKeyPairSessionCredentialsProvider` | `withExpiredDuration(long expiredDurationSeconds)`
    `STSKeyPairSessionCredentialsProvider` | `withExpiredFactor(double expiredFactor)`

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

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

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

    - #### STSKeyPairSessionCredentialsProvider

          public STSKeyPairSessionCredentialsProvider(com.aliyuncs.auth.KeyPairCredentials keyPairCredentials,
                                              com.aliyuncs.profile.IClientProfile profile)

  - ### 方法详细资料

    - #### withExpiredDuration

          public STSKeyPairSessionCredentialsProvider withExpiredDuration(long expiredDurationSeconds)

    - #### withExpiredFactor

          public STSKeyPairSessionCredentialsProvider withExpiredFactor(double expiredFactor)

    - #### setCredentials

          public void setCredentials(Credentials creds)

      指定者:
        `setCredentials` 在接口中 `CredentialsProvider`

    - #### getCredentials

          public Credentials getCredentials()

      指定者:
        `getCredentials` 在接口中 `CredentialsProvider`

Copyright © 2020. All Rights Reserved.