Keyri class

Keyri plugin. This class represents Keyri SDK for passwordless QR authentication.

Constructors

Keyri(dynamic appKey, {String? publicApiKey, String? serviceEncryptionKey, bool? blockEmulatorDetection})
Pass required appKey for given Origin. Provide optional publicApiKey and serviceEncryptionKey parameters to use fraud prevention and mobile fingerprinting. Set blockEmulatorDetection parameter to false if you want to deny run your app on emulators, true by default.
Keyri.primary(dynamic appKey, {String? publicApiKey, String? serviceEncryptionKey, KeyriDetectionsConfig? detectionsConfig})
Pass required appKey for given Origin. Provide optional publicApiKey and serviceEncryptionKey parameters to use fraud prevention and mobile fingerprinting. Set blockEmulatorDetection parameter to false if you want to deny run your app on emulators, true by default.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

confirmSession(String payload, bool trustNewBrowser) Future<bool>
Call this function if user confirmed the dialog. Returns Boolean authentication result.
createFingerprint() Future<FingerprintRequest>
Creates and returns fingerprint event object. Returns FingerprintRequest or error.
denySession(String payload) Future<bool>
Call if the user denied the dialog. Returns Boolean denial result.
easyKeyriAuth(String payload, {String? publicUserId}) Future<bool>
Call this method to launch in-app scanner and delegate authentication to SDK.
generateAssociationKey({String? publicUserId}) Future<String?>
Returns Base64 public key for the specified publicUserId.
generateUserSignature({String? publicUserId, required String data}) Future<String?>
Returns an Base64 ECDSA signature of the optional customSignedData with the publicUserId's privateKey (or, if not provided, anonymous privateKey), data can be anything.
getAssociationKey({String? publicUserId}) Future<String?>
Returns association Base64 public key for the specified publicUserId's.
getCorrectedTimestampSeconds() Future<int>
Call it to get timestamp synchronized with NTP. Returns Future of int or error.
initializeDefaultConfirmationScreen(String payload) Future<bool>
Call it to show Confirmation screen with default UI.
initiateQrSession(String sessionId, {String? publicUserId}) Future<Session>
Call it after obtaining the sessionId from QR code or deep link. Returns Future of Session object with Risk attributes (needed to show confirmation screen) or error.
listAssociationKeys() Future<Map<String, String>>
Returns a map of "association keys" and ECDSA Base64 public keys.
listUniqueAccounts() Future<Map<String, String>>
Returns a map of unique "association keys" and ECDSA Base64 public keys.
login({String? publicUserId}) Future<LoginObject>
Call it to create LoginObject for login. Returns Future of LoginObject object or error.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Call it to process scanned link with sessionId and show Confirmation with default UI.
register({String? publicUserId}) Future<RegisterObject>
Call it to create RegisterObject for login. Returns Future of RegisterObject object or error.
removeAssociationKey(String publicUserId) Future<bool>
Removes association public key for the specified publicUserId's.
sendEvent({String? publicUserId, required EventType eventType, required bool success}) Future<FingerprintEventResponse>
Sends fingerprint event and event result for specified publicUserId's. Returns FingerprintEventResponse or error.
toString() String
A string representation of this object.
inherited

Operators

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