PCUsersManager

Creates and manages PCUser objects

  • Returs all users stored on the device

  • Unique fingerprint for the device

  • Creates the new user by importing the data from a string

  • Activates a non-activated user using an activation code

    If user is already activated nothing will happen.

    Throws

    PCError.invalidActivationCode if the activation code is wrong

  • Prepares the user for signing operations and changes the isReadyToSign property to true.

    The user must be activated before submiting the password. You can check the activation by reading the isActivated property which must be true.

    Throws

    PCError.invalidPassword if the password is wrong

  • Registers the user on the PayContol server

    Registers public key, deviceToken for Push-notifications and the device’s fingerprint

  • Registers an extended authentication template for a user

  • Stores the user in the storage

    This method provides several possibilities:

  • Adding the new user. You must provide the imported user object, name and the password. If the name property is nil — the new name will be generated automatically by using the systemName property or by adding a suffix with a number.
  • Updating the existing user’s data. Provide either the new name or the new password, or both. Updating the password requires invoking submitPassword method before.

  • Throws

    Can throw PCError.internalError if there are problems with CoreData or Keychain

  • Deletes the user in the storage

    Throws

    Can throw PCError.internalError if there are problems with CoreData or Keychain

  • Renews user

    Renewing the user requires invoking submitPassword method before.