public class BasicCOSCredentials extends Object implements COSCredentials
Constructor and Description |
---|
BasicCOSCredentials(String accessKey,
String secretKey) |
BasicCOSCredentials(String appId,
String accessKey,
String secretKey)
Deprecated.
appid should be included in bucket name. for example if your appid
is 125123123, previous bucket is ott. you should set bucket as ott-125123123.
use
BasicCOSCredentials(String, String) |
Modifier and Type | Method and Description |
---|---|
String |
getCOSAccessKeyId()
Returns the COS access key ID for this credentials object.
|
String |
getCOSAppId()
Returns the COS AppId for this credentials object.
|
String |
getCOSSecretKey()
Returns the COS secret access key for this credentials object.
|
@Deprecated public BasicCOSCredentials(String appId, String accessKey, String secretKey)
BasicCOSCredentials(String, String)
appId
- the appid which your resource belong to.accessKey
- your accessKey(SecretId). you can get it by https://console.qcloud.com/capisecretKey
- your secretKey. you can get it by https://console.qcloud.com/capipublic String getCOSAppId()
COSCredentials
getCOSAppId
in interface COSCredentials
public String getCOSAccessKeyId()
COSCredentials
getCOSAccessKeyId
in interface COSCredentials
public String getCOSSecretKey()
COSCredentials
getCOSSecretKey
in interface COSCredentials
Copyright © 2023. All rights reserved.