Overview

  • Contains additional information about the Nevis Mobile Authentication SDK.

    See more

    Declaration

    Swift

    public enum MetaData
  • 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 struct Version : Equatable, Hashable, Codable
    extension Version: Comparable
    extension Version: CustomStringConvertible
  • SDK

    The list of constants defined by the Nevis Mobile Authentication SDK.

    See more

    Declaration

    Swift

    @available(*, deprecated, message: "This class is deprecated and marked for removal in v3.9.0. Use `MetaData` instead.")
    public enum SDK
  • The MobileAuthenticationClient configuration. This Configuration is used to build and initialize the MobileAuthenticationClient.

    Examples:

    let defaultConfig = Configuration(baseUrl: URL(string: "https://test.host.com")!)
    let configWithCustomResponsePaths = Configuration(
        baseUrl: URL(string: "https://test.host.com")!
        registrationResponsePath: "/custom/uaf/1.1/registration/"
        authenticationResponsePath: "/custom/uaf/1.1/authentication/"
    )
    let authCloudConfig = Configuration(authCloudHostname: "test.host.com")
    
    
    See more

    Declaration

    Swift

    public struct Configuration : Codable, Equatable
  • The MobileAuthenticationClient protocol 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 and TLS settings 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 to setup the SDK during application startup:

    import MobileAuthenticationClient
    
    MobileAuthenticationClientInitializer()
        .configuration(configuration)
        .onSuccess { client in ... }
        .onError { error in ... }
        .execute()
    
    See more

    Declaration

    Swift

    public protocol MobileAuthenticationClient
  • Declaration

    Swift

    public final class MobileAuthenticationClientInitializer
  • 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

    public protocol LocalData