Overview - Objective-C
-
Contains additional information about the Nevis Mobile Authentication SDK.
See moreDeclaration
Swift
public final class NMAMetaData : NSObject
-
Represents a generic version with major and minor fields.
Warning
Maximum supported version is: 65535.65535.18446744073709551615.18446744073709551615Warning
Equality is done without build number, if build number checking is needed, please useisEqualWithBuild(_:)
andisLowerThanWithBuild(_:)
.Declaration
Swift
public class NMAVersion : NSObject
-
The
NMAMobileAuthenticationClient
configuration. ThisNMAConfiguration
is used to build and initialize theNMAMobileAuthenticationClient
.Examples:
See moreNSURL *baseURL = [[NSURL alloc] initWithString:@"https://test.host.com"]; NMAConfiguration *defaultConfig = [[NMAConfiguration alloc] initWithBaseUrl:baseURL]; NMAConfiguration *configWithCustomPaths = [[NMAConfiguration alloc] initWithBaseUrl:baseURL registrationRequestPath:@"/nevisfido/uaf/1.1/request/registration/" registrationResponsePath:@"/nevisfido/uaf/1.1/registration/" authenticationRequestPath:@"/auth/fidouaf" authenticationResponsePath:@"/auth/fidouaf/authenticationresponse/" deregistrationRequestPath:@"/nevisfido/uaf/1.1/request/deregistration/" dispatchTargetResourcePath:@"/nevisfido/token/dispatch/targets/" deviceResourcePath:@"/nevisfido/devices/" networkTimeoutInSeconds:60 userInteractionTimeoutInSeconds:240]; NMAConfiguration *authCloudConfig = [[NMAConfiguration alloc] initWithAuthCloudHostname:@"test.host.com"];
Declaration
Swift
public class NMAConfiguration : NSObject, DictionaryConvertible
-
The
NMAMobileAuthenticationClient
protocol represents the entry point to the SDK. Your application should generally create an application scopedNMAMobileAuthenticationClient
instance, by passing in a configuration that specifies theNMAMobileAuthenticationClient
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 theNMAConfiguration
has already been created, here is an example usingNMAMobileAuthenticationClientInitializer
to setup the SDK during application startup:
See more#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];
Declaration
Swift
@objc public protocol NMAMobileAuthenticationClient
-
A builder for
See moreNMAMobileAuthenticationClient
.Declaration
Swift
public final class NMAMobileAuthenticationClientInitializer : NSObject
-
A protocol that provides information about the information that is stored locally in the SDK. This includes authenticator and device information. The protocol also allows to delete the data locally.
See moreDeclaration
Swift
@objc public protocol NMALocalData