aries_cloudagent.askar package
Subpackages
Submodules
aries_cloudagent.askar.profile module
aries_cloudagent.askar.profile_anon module
Manage Aries-Askar profile interaction.
- class aries_cloudagent.askar.profile_anon.AskarAnonProfileManager[source]
Bases:
ProfileManager
Manager for Aries-Askar stores.
- async classmethod generate_store_key(seed: Optional[str] = None) str [source]
Generate a raw store key.
- class aries_cloudagent.askar.profile_anon.AskarAnoncredsProfile(opened: AskarOpenStore, context: Optional[InjectionContext] = None, *, profile_id: Optional[str] = None)[source]
Bases:
Profile
Provide access to Aries-Askar profile interaction methods.
- TEST_PROFILE_NAME = 'test-profile'
- session(context: Optional[InjectionContext] = None) AskarAnoncredsProfileSession [source]
Start a new interactive session with no transaction support requested.
- property store: aries_askar.Store
Accessor for the opened Store instance.
- transaction(context: Optional[InjectionContext] = None) AskarAnoncredsProfileSession [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_anon.AskarAnoncredsProfileSession(profile: AskarAnoncredsProfile, is_txn: bool, *, context: Optional[InjectionContext] = None, settings: Optional[Mapping[str, Any]] = None)[source]
Bases:
ProfileSession
An active connection to the profile management backend.
- property handle: aries_askar.Session
Accessor for the Session instance.
- property store: aries_askar.Store
Accessor for the Store instance.
aries_cloudagent.askar.store module
Aries-Askar backend store configuration.
- class aries_cloudagent.askar.store.AskarOpenStore(config: AskarStoreConfig, created, store: aries_askar.Store)[source]
Bases:
object
Handle and metadata for an opened Askar store.
- class aries_cloudagent.askar.store.AskarStoreConfig(config: Optional[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'
- async open_store(provision: bool = False) AskarOpenStore [source]
Open a store, removing and/or creating it if so configured.
- Raises
ProfileNotFoundError – If the store is not found
ProfileError – If there is another aries_askar error