QCloudCredential Class Reference
Inherits from | NSObject |
---|---|
Declared in | QCloudCredential.h |
Overview
将secretKey secretID 封装然后用于生成签名
示例
@code
QCloudCredential* credential = [QCloudCredential new]; credential.secretID = kSecretIDCSP; credential.secretKey = kSecretKeyCSP;
secretID
开发者拥有的项目身份识别 ID,用以身份认证
@property (nonatomic, strong) NSString *secretID
Declared In
QCloudCredential.h
secretKey
开发者拥有的项目身份密钥。可以为永久密钥,也可以是临时密钥(参考CAM系统)。
@property (nonatomic, strong) NSString *secretKey
Declared In
QCloudCredential.h
startDate
签名有效期的起始时间。默认是设备的本地时间,如果传入起始时间,那么将以起始时间去计算签名。
@property (nonatomic, strong) NSDate *startDate
Declared In
QCloudCredential.h
experationDate
签名有效期截止的时间。没有设置的话,默认是起始时间加十分钟。
@property (nonatomic, strong) NSDate *experationDate
Declared In
QCloudCredential.h
token
当您使用了CAM系统获取临时密钥的时候,请设置改值,代表回话的ID。
@property (nonatomic, strong) NSString *token
Declared In
QCloudCredential.h