Class Passport

  • java.lang.Object

    • io.keychain.core.Passport

      public class Passport

Passport

Passport manages Personas, Contacts, all associated private keys (blockchain and application). This class performs all blockchain network requests and all database interactions.

Passport is extended by Gateway and Monitor and is typically instantiated through its derived classes rather than on its own.

Method Summary

Static Methods

Return type Method and Description

static Context

initialize(android.content.Context context)

Initialize the module database

static.java.io.File

unarchiveFile(android.content.Context context, java.lang.String filename)

Load the configuration file from the APK package

Constructor Summary

Constructor and Description

private Passport(Context keychainContext, android.content.Context androidContext)

Instance Methods

Return type Method and Description

Contact

createContact(java.lang.String name, java.lang.String subName, Uri encryptionUri, Uri signatureUri)

Create a contact

Persona

createPersona(java.lang.String name, java.lang.String subName, SecurityLevel secLevel)

Create a new Persona and set the active person to the new Persona

void

deleteContact(Contact contact)

Delete a contact

void

deletePersona(Persona persona)

Delete a persona

java.util.ArrayList<Contact>

getContacts()

Get the set of contacts of the active Persona

java.util.ArrayList<Persona>

getPersonas()

Get the set of personas

Persona

getActivePersona()

Get the active persona

Persona

setActivePersona()

Set the active persona

void

rename(Facade facade, java.lang.String nameName, java.lang.String newSubName)

Rename facade

void

extendKeychains(Person persona)

Extend Keychains with new application keys

int

seed()

Seed the wallet

Methods inherited from class java.lang.Object

clone,equals,getClass, hashCode, notify, notifyAll, toString, wait