MobileAuthenticationClient class abstract

The MobileAuthenticationClient class represents the entry point to the SDK.

Your application should generally create an application scoped MobileAuthenticationClient instance, by passing in a Configuration that specifies the MobileAuthenticationClient behavior. The configuration defines the URLs used to perform operations with a NEVIS Mobile Authentication backend.

To create the MobileAuthenticationClient, assuming that the Configuration has already been created, here is an example using MobileAuthenticationClientInitializer to setup the SDK during application startup:

  [...]
  Future<void> createMobileAuthenticationClient({
    required Configuration configuration,
  }) async {
    await MobileAuthenticationClientInitializer.initializer
      .configuration(configuration)
      .onSuccess((client) {
        // handle the MobileAuthenticationClient
      })
      .onError((error) {
        // handle error
      })
      .execute();
  }
  [...]

See Configuration

Constructors

MobileAuthenticationClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
localData LocalData
Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.
no setter
operations Operations
Returns the object that can be used to invoke operations against the server.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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