NMAMobileAuthenticationClient

@objc
public protocol NMAMobileAuthenticationClient

The NMAMobileAuthenticationClient protocol represents the entry point to the SDK. Your application should generally create an application scoped NMAMobileAuthenticationClient instance, by passing in a configuration that specifies the NMAMobileAuthenticationClient behavior. The configuration defines the URLs and TLS settings used to perform operations with a NEVIS Mobile Authentication backend.

To create the NMAMobileAuthenticationClient, assuming that the NMAConfiguration has already been created, here is an example using NMAMobileAuthenticationClientInitializer to setup the SDK during application startup:

#import <NevisMobileAuthentication/NevisMobileAuthentication.h>

NMAMobileAuthenticationClientInitializer *initializer = [[NMAMobileAuthenticationClientInitializer alloc] init];

[initializer configuration:configuration];
[initializer onSuccess:^(id<NMAMobileAuthenticationClient> _Nonnull client) {...}];
[initializer onError:^(NMAInitializationError * _Nonnull error) {...}];
[initializer execute];
  • Returns the object that can be used to invoke operations against the server.

    Declaration

    Swift

    var operations: NMAOperations { get }
  • Returns the object that can be used to get information about the data (authenticators, device information) managed by the SDK.

    Declaration

    Swift

    var localData: NMALocalData { get }