com.aliyun.oss.common.auth

## 类 DefaultCredentials

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

- 所有已实现的接口:
    Credentials

      public class DefaultCredentials
      extends Object
      implements Credentials

  Default implementation of `Credentials`.

- - ### 构造器概要

    构造器
    构造器和说明
    `DefaultCredentials(String accessKeyId, String secretAccessKey)`
    `DefaultCredentials(String accessKeyId, String secretAccessKey, String securityToken)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getAccessKeyId()` Returns the access key ID for this credentials.
    `String` | `getSecretAccessKey()` Returns the secret access key for this credentials.
    `String` | `getSecurityToken()` Returns the security token for this credentials.
    `boolean` | `useSecurityToken()` Determines whether to use security token for http requests.

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

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

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

    - #### DefaultCredentials

          public DefaultCredentials(String accessKeyId,
                            String secretAccessKey)

    - #### DefaultCredentials

          public DefaultCredentials(String accessKeyId,
                            String secretAccessKey,
                            String securityToken)

  - ### 方法详细资料

    - #### getAccessKeyId

          public String getAccessKeyId()

      从接口复制的说明: `Credentials`
      Returns the access key ID for this credentials.
      指定者:
        `getAccessKeyId` 在接口中 `Credentials`

    - #### getSecretAccessKey

          public String getSecretAccessKey()

      从接口复制的说明: `Credentials`
      Returns the secret access key for this credentials.
      指定者:
        `getSecretAccessKey` 在接口中 `Credentials`

    - #### getSecurityToken

          public String getSecurityToken()

      从接口复制的说明: `Credentials`
      Returns the security token for this credentials.
      指定者:
        `getSecurityToken` 在接口中 `Credentials`

    - #### useSecurityToken

          public boolean useSecurityToken()

      从接口复制的说明: `Credentials`
      Determines whether to use security token for http requests.
      指定者:
        `useSecurityToken` 在接口中 `Credentials`

Copyright © 2020. All Rights Reserved.