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, anNMAOperationError
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, anNMAOperationError
will be returned as a result of the operation.Note
Providing
Array
instead ofSet
to be aligned with the Swift API.Note
The
NMAAccount
s in the providedArray
are unique.Declaration
Swift
var registeredAccounts: [NMAAccount] { get }
Return Value
a list of registered accounts.
-
Returns
true
if the provided user is registered andfalse
otherwise.Declaration
Swift
func isRegistered(_ username: Username) -> Bool
Parameters
username
the username.
Return Value
true
if the provided user is registered andfalse
otherwise.