Overview - Objective-C

  • Contains additional information about the Nevis Mobile Authentication SDK.

    See more

    Declaration

    Swift

    public final class NMAMetaData : NSObject
  • Represents a generic version with major and minor fields.

    Warning

    Maximum supported version is: 65535.65535.18446744073709551615.18446744073709551615

    Warning

    Equality is done without build number, if build number checking is needed, please use isEqualWithBuild(_:) and isLowerThanWithBuild(_:).
    See more

    Declaration

    Swift

    public class NMAVersion : NSObject
  • The NMAMobileAuthenticationClient configuration. This NMAConfiguration is used to build and initialize the NMAMobileAuthenticationClient.

    Examples:

    NSURL *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"];
    
    See more

    Declaration

    Swift

    public class NMAConfiguration : NSObject, DictionaryConvertible
  • 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];
    
    See more

    Declaration

    Swift

    @objc
    public protocol NMAMobileAuthenticationClient
  • 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 more

    Declaration

    Swift

    @objc
    public protocol NMALocalData