[][src]Module safe_authenticator::config

Functionality relating to the Authenticator configuration, including things related to app info and the revocation queue.

Structs

AppInfo

App data stored in the authenticator configuration.

Constants

KEY_APPS

Config file key under which the list of registered apps is stored.

KEY_APP_REVOCATION_QUEUE

Config file key under which the revocation queue is stored.

Functions

get_app

Retrieves an app info by the given app ID.

get_app_revocation_queue

Get authenticator's revocation queue. Returns version and the revocation queue in a tuple. If the queue is not found on the config file, returns None.

insert_app

Register the given app with authenticator.

list_apps

Retrieves apps registered with the authenticator.

next_version

Bump the current version to obtain new version.

push_to_app_revocation_queue

Push new app_id into the revocation queue and put it onto the network. Does nothing if the queue already contains app_id.

remove_app

Remove the given app from the list of registered apps.

remove_from_app_revocation_queue

Remove app_id from the revocation queue. Does nothing if the queue doesn't contain app_id.

repush_to_app_revocation_queue

Moves app_id to the back of the revocation queue. Does nothing if the queue doesn't contain app_id.

Type Definitions

Apps

Maps from a SHA-3 hash of an app ID to app info.

RevocationQueue

Contains a queue of revocations that are currently running or have failed. String refers to app_id.