Class Gateway

Module: keychain

Inheritance: Gateway

Gateway

Gateway performs application-level cryptographic operations encrypt, decrypt, sign, and verify.

Static Methods

Return type Method and Description

int

init(config_path, db_path, force_clean, drop_sql_file, create_sql_file);

Initialize module.

Constructor Summary

Constructor

gateway(settings, db_path)

Instance Methods

Return type Method and Description

Facade

create_contact(name, sub_name, uri)

Create a contact.

Facade

create_persona(name, sub_name, sec_level)

Create a new persona.

bytearray, CharEncoding, Verification

decrypt_then_verify(cipher_text_xml)

Decrypt then verify data that has been signed and encrypted as a string.

int

delete_facade(facade)

Delete a facade (persona or contact).

Facade

get_active_persona()

Get the active persona.

Facade[]

get_contacts()

Get the set of contacts for the current active persona.

Facade[]

get_personas()

Get set of personas.

None

seed()

Seed the private key pool and generate mnemonic recovery string.

bytearray

sign_then_encrypt(clear_text, contacts[])

Sign then encrypt a string so that it can be decrypted (and verified) by the given contacts.