AtOnboardingService class abstract

Implementers

Constructors

AtOnboardingService()

Properties

atAuth ↔ AtAuth?
getter/setter pair
atChops ↔ AtChops?
getter/setter pair
atClient ↔ AtClient?
getter/setter pair
atLookUp ↔ AtLookUp?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate({String? enrollmentId}) Future<bool>
Authenticate into secondary server using PKAM privateKey for legacy clients For clients that are enrolled through APKAM, pass the enrollmentId and auth is done using APKAM private key returns true if authenticated
close() Future<void>
Closes the current instance of onboarding_service
enroll(String appName, String deviceName, String otp, Map<String, String> namespaces, {int? pkamRetryIntervalMins}) Future<AtEnrollmentResponse>
Sends an enroll request to the server. Apps that are already enrolled will receive notifications for this enroll request and can approve/deny the request appName - application name of the client e.g wavi,buzz, atmosphere etc., deviceName - device identifier from the requesting application e.g iphone,any unique ID that identifies the requesting client otp - otp retrieved from an already enrolled app namespaces - key-value pair of namespace-access of the requesting client e.g {"wavi":"rw","contacts":"r"} pkamRetryIntervalMins - optional param which specifies interval in mins for pkam retry for this enrollment. The passed value will override the value in AtOnboardingPreference
getAtClient() Future<AtClient?>
returns an authenticated instance of AtClient
getAtLookup() → AtLookUp?
returns authenticated instance of AtLookup
isOnboarded() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onboard() Future<bool>
perform initial one_time authentication to activate the atsign returns true if onboarded
toString() String
A string representation of this object.
inherited

Operators

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