PendingEnrollment class

An enrollment this device has submitted and the atSign's manager has not yet decided.

The keys the submission minted are already in keys, filed under enrollmentId as pending material together with the app, device and namespaces asked for, so a restart finds them with Atsign.resumeEnrollment and picks up here. client waits for the decision: approval completes the keys in the store, moves them to active, and opens a client the caller owns; denial removes them and throws.

Constructors

PendingEnrollment({required Atsign atSign, required String enrollmentId, required String app, required String device, required Map<String, String> namespaces, required WrittenAtKeysIo keys, required AtRootDomain rootDomain, required SigningAlgoType signingAlgo, required EnrollmentKeyExchangeMode keyExchangeMode, AtLookupMuxable? atLookUp, required AtLookUpFactory lookUps})
lookUps builds the connection the approval handshake runs on and the ones the client opened on the completed keys uses; atLookUp is a connection for the handshake instead, for a caller that already holds one, and is left open.

Properties

app → String
final
atSign → Atsign
final
device → String
final
enrollmentId → String
final
hashCode → int
The hash code for this object.
no setterinherited
keyExchangeMode → EnrollmentKeyExchangeMode
final
keys → WrittenAtKeysIo
The store the submission wrote, which approval completes.
final
namespaces → Map<String, String>
final
progress → Stream<ProgressEvent>
What the wait is doing, as it does it.
no setter
rootDomain → AtRootDomain
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signingAlgo → SigningAlgoType
final

Methods

awaitApproval({Duration retryInterval = AtEnrollment.defaultRetryInterval, int maxRetries = AtEnrollment.defaultMaxRetries}) → Future<void>
Waits for the manager's decision, and on approval completes the keys in keys and moves them to active.
client(AtClientPreference preference, {String? namespace, AtClientStorage? storage, Duration retryInterval = AtEnrollment.defaultRetryInterval, int maxRetries = AtEnrollment.defaultMaxRetries, Duration connectBudget = AtConnection.defaultBudget}) → Future<AtClient>
Waits for the decision, then opens a client on the completed keys.
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