public class BasicQCloudCredentials extends java.lang.Object implements QCloudLifecycleCredentials, QCloudRawCredentials
构造器和说明 |
---|
BasicQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String signKey,
long beginTime,
long expiredTime)
Constructs a new BasicQCloudCredentials object
|
BasicQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String signKey,
java.lang.String keyTime)
Constructs a new BasicQCloudCredentials object
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getKeyTime()
返回临时密钥有效期
|
java.lang.String |
getSecretId()
返回 secretId
|
java.lang.String |
getSecretKey()
返回原始 secretKey
|
java.lang.String |
getSignKey()
返回临时密钥
|
boolean |
isValid()
返回密钥是否有效
|
public BasicQCloudCredentials(java.lang.String secretId, java.lang.String secretKey, java.lang.String signKey, long beginTime, long expiredTime)
secretId
- The QCloud secretId.signKey
- The QCloud signKey.beginTime
- The begin time of the key.expiredTime
- The expired time of the key.public BasicQCloudCredentials(java.lang.String secretId, java.lang.String secretKey, java.lang.String signKey, java.lang.String keyTime)
secretId
- The QCloud secretId.signKey
- The QCloud signKey.keyTime
- The QCloud keyTime.public boolean isValid()
QCloudLifecycleCredentials
isValid
在接口中 QCloudLifecycleCredentials
public java.lang.String getKeyTime()
QCloudLifecycleCredentials
getKeyTime
在接口中 QCloudLifecycleCredentials
public java.lang.String getSignKey()
QCloudLifecycleCredentials
getSignKey
在接口中 QCloudLifecycleCredentials
public java.lang.String getSecretId()
QCloudCredentials
getSecretId
在接口中 QCloudCredentials
public java.lang.String getSecretKey()
QCloudRawCredentials
getSecretKey
在接口中 QCloudRawCredentials