OnboardingService class
Service to handle onboarding flow
Constructors
- OnboardingService.getInstance()
-
factory
Properties
- appNamespace → String?
-
no setter
- atClientPreference → AtClientPreference
-
no setter
-
atClientServiceMap
↔ Map<
String?, AtClientService> -
getter/setter pair
- currentAtsign → String?
-
no setter
- fistTimeAuthScreen ↔ Widget?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPkam → bool?
-
no setter
- logo → Widget?
-
no setter
- namespace ← String
-
no getter
- nextScreen → Widget?
-
no setter
- onboardFunc ↔ Function
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverStatus ↔ ServerStatus?
-
getter/setter pair
- setAtClientPreference ← AtClientPreference
-
no getter
- setAtsign ← String?
-
no getter
- setLogo ← Widget?
-
no getter
- setNextScreen ← Widget?
-
no getter
Methods
-
authenticate(
String? atsign, {String? cramSecret, String? jsonData, String? decryptKey, OnboardingStatus? status}) → Future -
Returns
false
if fails in authenticatingatsign
withcramSecret
/privateKey
. Throws Excpetion if atsign is null. -
checkAtsignStatus(
{String? atsign}) → Future< AtSignStatus?> - Returns the status of an atsign
-
formatAtSign(
String? atsign) → String? -
Returns null if
atsign
is null else the formattedatsign
.atsign
must be non-null. -
getAESKey(
String atsign) → Future< String?> -
Fetches AESkey for
atsign
from device keychain. -
getAtSign(
) → Future< String?> - Fetches atsign from device keychain.
-
getAtsignList(
) → Future< List< String> > - returns the list of all onboarded atsigns
-
getEncryptedKeys(
String atsign) → Future< Map< String, String?> > -
Fetches encryption keys for
atsign
from device keychain. -
getPrivateKey(
String atsign) → Future< String?> -
Fetches privatekey for
atsign
from device keychain. -
getPublicKey(
String atsign) → Future< String?> -
Fetches publickey for
atsign
from device keychain. -
isExistingAtsign(
String? atsign) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onboard(
) → Future< bool> -
Returns
true
if authentication is successful for the existing atsign in device. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited