DVGoogleServiceAccount class

A Google service account, as the key file describes it.

Constructors

DVGoogleServiceAccount.fromJson(String json)
Reads the key file. Throws ArgumentError naming what is wrong, never quoting the key.
factory
DVGoogleServiceAccount.fromSecrets([DVSecrets secrets = const DVSecrets()])
Reads the account from dvFcmServiceAccountSecret.
factory

Properties

clientEmail → String
The account's email, which is the JWT issuer.
final
hashCode → int
The hash code for this object.
no setterinherited
privateKeyId → String?
Identifies which of the account's keys signed, so Google can look it up.
final
projectId → String
The Google Cloud project the account belongs to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenUri → Uri
Where assertions are exchanged for access tokens. Always https.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signAssertion({required String scope, DateTime? now, Duration lifetime = const Duration(hours: 1)}) → String
A signed JWT asking for scope, valid for lifetime (Google allows at most one hour).
toString() → String
A string representation of this object.
override

Operators

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