CosmosDbAuthorization class
Class representing a CosmosDB authorization. This class holds both the token and the msDate which are used to populate the HTTP headers when sending a request to Azure CosmosDB:
- Implemented types
Constructors
- CosmosDbAuthorization.new(String token, {String? msDate})
-
Directly build a CosmosDB authorization using the supplied
token
andmsDate
. The providedtoken
will be stored after URI-encoding. - CosmosDbAuthorization.fromKey(Hmac? key, String method, String type, String resId)
-
Build a CosmosDB authorization using the supplied
key
and the target resource details.factory
Properties
Methods
-
override
-
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