Class Gateway

  • java.lang.Object

    • io.keychain.core.Passport

      • io.keychain.core.Gateway

public class Gateway

extends io.keychain.core.Passport

Gateway

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

Constructor Summary

Constructor and Description

Gateway(Context keychainContext, android.content.Context androidContext)

Instance Methods

Return type Method and Description

Asset

createAsset(java.lang.String assetName)

Create/issue custom digital asset

btye[]

decryptThenVerify(java.lang.String cipherText)`

Decrypt then verify data using the active Persona

java.lang.String

decryptThenVerifyString(java.lang.String cipherText)

Decrypt then verify data to a string using the active Persona

java.lang.String

signThenEncrypt(java.util.ArrayList<Contact> contactList, byte[] clearText)

Sign then encrypt data using the active Persona

java.lang.String

signThenEncrypt(java.util.ArrayList<Contact> contactList, byte[] clearText)

Sign then encrypt data using the active Persona

Transaction

transferAsset(Asset asset, Contact receiver, long amount)

Create a transaction that sends the asset to the specified receiver

Transaction

updateLedger(Transaction trxn)

Update local ledger with transaction from peers.

Methods inherited from class io.keychain.core.Passport

createContact, createPersona, deleteContact, deletePersona, getContacts, getPersonas, renameFacade, extendKeychain, seed