public class SessionQCloudCredentials extends java.lang.Object implements QCloudLifecycleCredentials, QCloudRawCredentials
| 构造器和说明 |
|---|
SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
long expiredTime)
Constructs a new SessionQCloudCredentials object
|
SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
long startTime,
long expiredTime)
Constructs a new SessionQCloudCredentials object
|
SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
java.lang.String keyTime)
Constructs a new SessionQCloudCredentials object
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getExpiredTime() |
java.lang.String |
getKeyTime()
返回临时密钥有效期
|
java.lang.String |
getSecretId()
返回 secretId
|
java.lang.String |
getSecretKey()
返回原始 secretKey
|
java.lang.String |
getSignKey()
返回临时密钥
|
long |
getStartTime() |
java.lang.String |
getToken() |
boolean |
isValid()
返回密钥是否有效
|
public SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
long expiredTime)
secretId - The QCloud secretId.secretKey - The QCloud temporary secretKey.token - The QCloud token.expiredTime - The expired time of the key.public SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
long startTime,
long expiredTime)
secretId - The QCloud secretId.secretKey - The QCloud temporary secretKey.token - The QCloud token.startTime - The begin time of the key.expiredTime - The expired time of the key.public SessionQCloudCredentials(java.lang.String secretId,
java.lang.String secretKey,
java.lang.String token,
java.lang.String keyTime)
secretId - The QCloud secretId.secretKey - The QCloud temporary secretKey.token - The QCloud token.keyTime - The QCloud keyTime.public boolean isValid()
QCloudLifecycleCredentialsisValid 在接口中 QCloudLifecycleCredentialspublic java.lang.String getToken()
public java.lang.String getKeyTime()
QCloudLifecycleCredentialsgetKeyTime 在接口中 QCloudLifecycleCredentialspublic java.lang.String getSecretId()
QCloudCredentialsgetSecretId 在接口中 QCloudCredentialspublic java.lang.String getSecretKey()
QCloudRawCredentialsgetSecretKey 在接口中 QCloudRawCredentialspublic java.lang.String getSignKey()
QCloudLifecycleCredentialsgetSignKey 在接口中 QCloudLifecycleCredentialspublic long getStartTime()
public long getExpiredTime()