com.aliyun.oss.common.auth

## 接口 CredentialsProvider

- 所有已知实现类:
    CustomSessionCredentialsProvider, DefaultCredentialProvider, EnvironmentVariableCredentialsProvider, InstanceProfileCredentialsProvider, ProfileCredentialsProvider, STSAssumeRoleSessionCredentialsProvider, STSKeyPairSessionCredentialsProvider, SystemPropertiesCredentialsProvider

      public interface CredentialsProvider

  Abstract credentials provider that maintains only one user credentials. Users can switch to other valid credentials with `OSS#switchCredentials(com.aliyun.oss.common.auth.Credentials)` Note that implementations of this interface must be thread-safe.

- - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `Credentials` | `getCredentials()`
    `void` | `setCredentials(Credentials creds)`

- - ### 方法详细资料

    - #### setCredentials

          void setCredentials(Credentials creds)

    - #### getCredentials

          Credentials getCredentials()

Copyright © 2020. All Rights Reserved.