NMARegistrationInfo

@objc
public protocol NMARegistrationInfo : DictionaryEncodable

An object containing information about the authenticators and their related registrations.

  • Returns the objects representing the accounts that are registered with this authenticator.

    If an authenticator that is registered for a given username is provided through NMAAuthenticatorSelector for registration operations associated with the account associated with the username, an NMAOperationError will be returned as a result of the operation.

    If an authenticator that is not registered for a given username is provided through NMAAuthenticatorSelector for authentication operations associated with the account associated with the username, an NMAOperationError will be returned as a result of the operation.

    Note

    Providing Array instead of Set to be aligned with the Swift API.

    Note

    The NMAAccounts in the provided Array are unique.

    Declaration

    Swift

    var registeredAccounts: [NMAAccount] { get }

    Return Value

    a list of registered accounts.

  • Returns true if the provided user is registered and false otherwise.

    Declaration

    Swift

    func isRegistered(_ username: Username) -> Bool

    Parameters

    username

    the username.

    Return Value

    true if the provided user is registered and false otherwise.