| 程序包 | 说明 | 
|---|---|
| com.aliyun.oss | |
| com.aliyun.oss.common.auth | 
| 限定符和类型 | 方法和说明 | 
|---|---|
CredentialsProvider | 
OSSClient.getCredentialsProvider()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
OSS | 
OSSClientBuilder.build(String endpoint,
     CredentialsProvider credsProvider)  | 
OSS | 
OSSBuilder.build(String endpoint,
     CredentialsProvider credsProvider)
Uses the specified  
CredentialsProvider and OSS Endpoint to create
 a new OSSClient instance. | 
OSS | 
OSSClientBuilder.build(String endpoint,
     CredentialsProvider credsProvider,
     ClientBuilderConfiguration config)  | 
OSS | 
OSSBuilder.build(String endpoint,
     CredentialsProvider credsProvider,
     ClientBuilderConfiguration config)
Uses the specified  
CredentialsProvider, client configuration and
 OSS endpoint to create a new OSSClient instance. | 
| 构造器和说明 | 
|---|
OSSClient(String endpoint,
         CredentialsProvider credsProvider)
已过时。  
 | 
OSSClient(String endpoint,
         CredentialsProvider credsProvider,
         ClientConfiguration config)
Uses the specified  
CredentialsProvider, client configuration and
 OSS endpoint to create a new OSSClient instance. | 
| 限定符和类型 | 类和说明 | 
|---|---|
class  | 
CustomSessionCredentialsProvider  | 
class  | 
DefaultCredentialProvider
Default implementation of  
CredentialsProvider. | 
class  | 
EnvironmentVariableCredentialsProvider
EnvironmentVariableCredentialsProvider implementation that provides
 credentials by looking at the: OSS_ACCESS_KEY_ID and
 OSS_ACCESS_KEY_SECRET environment variables. | 
class  | 
InstanceProfileCredentialsProvider
Credentials provider implementation that loads credentials from the Ali Cloud
 ECS Instance Metadata Service. 
 | 
class  | 
ProfileCredentialsProvider
Credentials provider based on OSS configuration profiles. 
 | 
class  | 
STSAssumeRoleSessionCredentialsProvider
STSAssumeRoleSessionCredentialsProvider implementation that uses the STS
 Security Token Service to assume a Role and create temporary, short-lived
 sessions to use for authentication. 
 | 
class  | 
STSKeyPairSessionCredentialsProvider
STSKeyPairSessionCredentialsProvider implementation that uses the RSA key
 pair to create temporary, short-lived sessions to use for authentication. 
 | 
class  | 
SystemPropertiesCredentialsProvider
SystemPropertiesCredentialsProvider implementation that provides
 credentials by looking at the oss.accessKeyId and
 oss.accessKeySecret Java system properties. | 
Copyright © 2019. All Rights Reserved.