Acquire.Client._wallet module

class Wallet[source]

Bases: object

This class holds a wallet that can be used to simplify sending passwords and one-time-password (OTP) codes to an acquire identity service.

This holds a wallet of passwords and (optionally) OTP secrets that are encrypted using a local keypair that is unlocked by a password supplied by the user locally.

static add_service(service)[source]

Add a cached service info for the passed service. If it already exists, then this verifies that the added service is the same as the previously-seen service

static get_service(service_url)[source]

Return the service at ‘service_url’. This will return the cached service if it exists, or will add a new service if the user so wishes

static get_services()[source]

Return all of the trusted services known to this wallet

static remove_all_services()[source]

Remove all trusted services from this Wallet

static remove_service(service)[source]

Remove the cached service info for the passed service

static remove_user_info(username)[source]

Call this function to remove the userinfo associated with the account ‘username’ for all identity services

send_password(url, username=None, remember_password=True, remember_device=None, dryrun=None)[source]

Send a password and one-time code to the supplied login url