Interface MobileAuthenticationClient


public interface MobileAuthenticationClient
The MobileAuthenticationClient interface 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.initializer() to setup the SDK during application startup:

 import android.content.Context;

 [...]

     public static void createMobileAuthenticationClient(Context context,
         Configuration configuration) {
         return MobileAuthenticationClientInitializer.initializer()
               .context(context)
               .configuration(configuration)
               .onError(error -> {
                   // handle error
               })
               .onSuccess(mobileAuthenticationClient -> {
                   // handle the MobileAuthenticationClient
               })
               .initialize();
     }
 }
 
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.
    Returns the object that can be used to invoke operations against the server.
  • Method Details

    • operations

      Operations operations()
      Returns the object that can be used to invoke operations against the server.
      Returns:
      the Operations
    • localData

      LocalData localData()
      Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.
      Returns:
      the LocalData