aries_cloudagent.askar package¶
Subpackages¶
Submodules¶
aries_cloudagent.askar.profile module¶
Manage Aries-Askar profile interaction.
-
class
aries_cloudagent.askar.profile.
AskarProfile
(opened: aries_cloudagent.askar.store.AskarOpenStore, context: aries_cloudagent.config.injection_context.InjectionContext = None, *, profile_id: str = None)[source]¶ Bases:
aries_cloudagent.core.profile.Profile
Provide access to Aries-Askar profile interaction methods.
-
BACKEND_NAME
= 'askar'¶
-
name
¶ Accessor for the profile name.
-
session
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with no transaction support requested.
-
store
¶ Accessor for the opened Store instance.
-
transaction
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with commit and rollback support.
If the current backend does not support transactions, then commit and rollback operations of the session will not have any effect.
-
-
class
aries_cloudagent.askar.profile.
AskarProfileManager
[source]¶ Bases:
aries_cloudagent.core.profile.ProfileManager
Manager for Aries-Askar stores.
-
class
aries_cloudagent.askar.profile.
AskarProfileSession
(profile: aries_cloudagent.askar.profile.AskarProfile, is_txn: bool, *, context: aries_cloudagent.config.injection_context.InjectionContext = None, settings: Mapping[str, Any] = None)[source]¶ Bases:
aries_cloudagent.core.profile.ProfileSession
An active connection to the profile management backend.
-
handle
¶ Accessor for the Session instance.
-
is_transaction
¶ Check if the session supports commit and rollback operations.
-
store
¶ Accessor for the Store instance.
-
aries_cloudagent.askar.store module¶
Aries-Askar backend store configuration.
-
class
aries_cloudagent.askar.store.
AskarOpenStore
(config: aries_cloudagent.askar.store.AskarStoreConfig, created, store: <sphinx.ext.autodoc.importer._MockObject object at 0x7fc04646feb0>)[source]¶ Bases:
object
Handle and metadata for an opened Askar store.
-
name
¶ Accessor for the store name.
-
-
class
aries_cloudagent.askar.store.
AskarStoreConfig
(config: dict = None)[source]¶ Bases:
object
A helper class for handling Askar store configuration.
-
DEFAULT_KEY
= ''¶
-
DEFAULT_KEY_DERIVATION
= 'kdf:argon2i:mod'¶
-
DEFAULT_STORAGE_TYPE
= None¶
-
KEY_DERIVATION_ARGON2I_INT
= 'kdf:argon2i:int'¶
-
KEY_DERIVATION_ARGON2I_MOD
= 'kdf:argon2i:mod'¶
-
KEY_DERIVATION_RAW
= 'RAW'¶
-