Auth class

提供用于鉴权的相关功能。

更多信息请查看官方文档-安全机制

Constructors

Auth({required String accessKey, required String secretKey})
const

Properties

accessKey String
鉴权所需的 accessKey
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String
鉴权所需的 secretKey
final

Methods

generateAccessToken({required List<int> bytes}) String
根据数据签名,生成 Token(用于接口的访问鉴权)。
generateDownloadToken({required String key, required int deadline, required String bucketDomain}) String
生成针对私有空间资源的下载 Token。
generateUploadToken({required PutPolicy putPolicy}) String
根据上传策略生成上传使用的 Token。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseToken(String token) TokenInfo
解析 token 信息。
parseUpToken(String token) UpTokenInfo
解析 up token 信息。