AtAuthEnrollmentGateway class

The production EnrollmentGateway: at_auth enrollment and at_client activation, with the APKAM key pair the passkey derives.

A session from activate keeps the @keys the activation minted, which include the APKAM private key, until the session is dropped; EnrollmentSession.atKeys returns them without it.

Implemented types

Constructors

AtAuthEnrollmentGateway({required AtLookUpFactory lookUps, required SecondaryAddressFinder finder, required AtRootDomain root, required String app, required String device, required ClientOpener clientOpener, Activator? activator})
activator is the at_client activation seam; clientOpener is what EnrollmentSession.openClient runs to build the client.

Properties

app → String
final
clientOpener → ClientOpener
final
device → String
The device name every enrollment of this gateway carries.
final
finder → SecondaryAddressFinder
Resolves an atSign to its atServer.
final
hashCode → int
The hash code for this object.
no setterinherited
lookUps → AtLookUpFactory
Builds each connection a session makes.
final
root → AtRootDomain
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate({required String atSign, required ApkamKeyPair apkamKeyPair, required String cram}) → Future<EnrollmentSession>
Activates a fresh atSign with cram, apkamKeyPair being its first enrollment's APKAM key, and returns the session authenticated as that enrollment.
override
authenticate({required String atSign, required String enrollmentId, required ApkamKeyPair apkamKeyPair}) → Future<EnrollmentSession>
Authenticates enrollmentId with apkamKeyPair.
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