Auth class

Constructors

Auth({required String accessKey, required String accessSecret, required String secureToken, required String expire})
const
Auth.fromJson(Map<String, dynamic> json)
factory

Properties

accessKey String
final
accessSecret String
final
encodedToken String
no setter
expire String
final
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureToken String
final

Methods

getSignature(int expires, String bucket, String key, {Map<String, dynamic>? params}) String
the signature of file expires expired time (seconds) bucket is the name of bucket used in aliyun oss key is the object name in aliyun oss, alias the 'filepath/filename'
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(HttpRequest req, String bucket, String key) → void
access aliyun need authenticated, this is the implementation refer to the official document. req include the request headers information that use for auth. bucket is the name of bucket used in aliyun oss key is the object name in aliyun oss, alias the 'filepath/filename'
toString() String
A string representation of this object.
inherited

Operators

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