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()
QCloudLifecycleCredentials
isValid
在接口中 QCloudLifecycleCredentials
public java.lang.String getToken()
public java.lang.String getKeyTime()
QCloudLifecycleCredentials
getKeyTime
在接口中 QCloudLifecycleCredentials
public java.lang.String getSecretId()
QCloudCredentials
getSecretId
在接口中 QCloudCredentials
public java.lang.String getSecretKey()
QCloudRawCredentials
getSecretKey
在接口中 QCloudRawCredentials
public java.lang.String getSignKey()
QCloudLifecycleCredentials
getSignKey
在接口中 QCloudLifecycleCredentials
public long getStartTime()
public long getExpiredTime()