# 程序包 com.aliyun.oss.common.auth
的使用

- 使用com.aliyun.oss.common.auth的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss |
  com.aliyun.oss.common.auth |
  com.aliyun.oss.common.comm |
  com.aliyun.oss.common.utils |
  com.aliyun.oss.crypto |

- com.aliyun.oss使用的com.aliyun.oss.common.auth中的类
  类和说明
  Credentials Provides access to credentials used for accessing OSS, these credentials are used to securely sign requests to OSS.
  CredentialsProvider Abstract credentials provider that maintains only one user credentials.
  RequestSigner

- com.aliyun.oss.common.auth使用的com.aliyun.oss.common.auth中的类
  类和说明
  BasicCredentials
  Credentials Provides access to credentials used for accessing OSS, these credentials are used to securely sign requests to OSS.
  CredentialsFetcher
  CredentialsProvider Abstract credentials provider that maintains only one user credentials.
  CustomSessionCredentialsFetcher
  CustomSessionCredentialsProvider
  DefaultCredentialProvider Default implementation of `CredentialsProvider`.
  EnvironmentVariableCredentialsProvider `EnvironmentVariableCredentialsProvider` implementation that provides credentials by looking at the: `OSS_ACCESS_KEY_ID` and `OSS_ACCESS_KEY_SECRET` environment variables.
  HttpCredentialsFetcher
  InstanceProfileCredentials
  InstanceProfileCredentialsFetcher
  InstanceProfileCredentialsProvider Credentials provider implementation that loads credentials from the Ali Cloud ECS Instance Metadata Service.
  ProfileConfigFile Loads the local OSS credential profiles from the standard location (~/.oss/credentials), which can be easily overridden through the `OSS_CREDENTIAL_PROFILES_FILE` environment variable or by specifying an alternate credentials file location through this class' constructor.
  ProfileConfigLoader
  ServiceSignature The interface to compute the signature of the data.
  STSAssumeRoleSessionCredentialsProvider STSAssumeRoleSessionCredentialsProvider implementation that uses the STS Security Token Service to assume a Role and create temporary, short-lived sessions to use for authentication.
  STSKeyPairSessionCredentialsProvider STSKeyPairSessionCredentialsProvider implementation that uses the RSA key pair to create temporary, short-lived sessions to use for authentication.
  SystemPropertiesCredentialsProvider `SystemPropertiesCredentialsProvider` implementation that provides credentials by looking at the `oss.accessKeyId` and `oss.accessKeySecret` Java system properties.

- com.aliyun.oss.common.comm使用的com.aliyun.oss.common.auth中的类
  类和说明
  Credentials Provides access to credentials used for accessing OSS, these credentials are used to securely sign requests to OSS.
  RequestSigner

- com.aliyun.oss.common.utils使用的com.aliyun.oss.common.auth中的类
  类和说明
  PublicKey

- com.aliyun.oss.crypto使用的com.aliyun.oss.common.auth中的类
  类和说明
  CredentialsProvider Abstract credentials provider that maintains only one user credentials.

Copyright © 2020. All Rights Reserved.