Package ch.nevis.mobile.sdk.api
Interface MobileAuthenticationClient
-
public interface MobileAuthenticationClient
TheMobileAuthenticationClient
interface represents the entry point to the SDK. Your application should generally create an application scopedMobileAuthenticationClient
instance, by passing in aConfiguration
that specifies theMobileAuthenticationClient
behavior. The configuration defines the URLs used to perform operations with a NEVIS Mobile Authentication backend.To create the
MobileAuthenticationClient
, assuming that theConfiguration
has already been created, here is an example usingMobileAuthenticationClientInitializer.initializer()
to setup the SDK during application startup:import android.app.Application; [...] public static void createMobileAuthenticationClient(Application application, Configuration configuration) { return MobileAuthenticationClientInitializer.initializer() .application(application) .configuration(configuration) .onError(error -> { // handle error }) .onSuccess(mobileAuthenticationClient -> { // handle the MobileAuthenticationClient }) .initialize(); } }
- See Also:
Configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalData
localData()
Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.Operations
operations()
Returns the object that can be used to invoke operations against the server.
-
-
-
Method Detail
-
operations
Operations operations()
Returns the object that can be used to invoke operations against the server.- Returns:
- the
Operations
-
-