public class BasicSessionCredentials extends Object implements COSSessionCredentials
| Constructor and Description |
|---|
BasicSessionCredentials(String accessKey,
String secretKey,
String sessionToken) |
BasicSessionCredentials(String appId,
String accessKey,
String secretKey,
String sessionToken)
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
BasicSessionCredentials(String, 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.
|
String |
getSessionToken()
Returns the session token for this session.
|
@Deprecated public BasicSessionCredentials(String appId, String accessKey, String secretKey, String sessionToken)
BasicSessionCredentials(String, 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/capisessionToken - the sessionToken you get from cam.public BasicSessionCredentials(String accessKey, String secretKey, String sessionToken)
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/capisessionToken - the sessionToken you get from cam.public String getCOSAppId()
COSCredentialsgetCOSAppId in interface COSCredentialspublic String getCOSAccessKeyId()
COSCredentialsgetCOSAccessKeyId in interface COSCredentialspublic String getCOSSecretKey()
COSCredentialsgetCOSSecretKey in interface COSCredentialspublic String getSessionToken()
COSSessionCredentialsgetSessionToken in interface COSSessionCredentialsCopyright © 2023. All rights reserved.