PlutoRestoreTask

open class PlutoRestoreTask(castor: Castor, pluto: Pluto, backup: BackupV0_0_1)(source)

Represents a task for restoring data in Pluto.

Parameters

pluto

The Pluto instance to restore data to.

backup

The Pluto backup object containing the data to be restored.

Constructors

Link copied to clipboard
constructor(castor: Castor, pluto: Pluto, backup: BackupV0_0_1)

Types

Link copied to clipboard
class AnonCredentialBackUp constructor(val schemaID: String, val credentialDefinitionID: String, val values: Map<String, AnonCredential.Attribute>, val signature: PlutoRestoreTask.AnonCredentialBackUp.Signature, val signatureCorrectnessProof: PlutoRestoreTask.AnonCredentialBackUp.SignatureCorrectnessProof, val revocationRegistryId: String? = null, val revocationRegistry: PlutoRestoreTask.AnonCredentialBackUp.RevocationRegistry? = null, val witnessJson: PlutoRestoreTask.AnonCredentialBackUp.Witness? = null, val revoked: Boolean? = null)

Represents the backup of anonymous credentials.

Link copied to clipboard
class BackUpMessage constructor(val id: String = UUID.randomUUID().toString(), val piuri: String, val from: DID? = null, val to: DID? = null, val fromPrior: String? = null, val body: String, val extraHeaders: Map<String, String> = emptyMap(), val createdTime: Long? = null, val expiresTime: Long? = null, val attachments: Array<AttachmentDescriptor> = arrayOf(), val thid: String? = null, val pthid: String? = null, val ack: Array<String>? = emptyArray(), val direction: Message.Direction = Message.Direction.RECEIVED)

The BackUpMessage class represents a backup message that contains various properties such as ID, PIURI, from, to, fromPrior, body, extraHeaders, createdTime, expiresTime, attachments, thid, pthid, ack, and direction.

Link copied to clipboard

Represents the various types of backup restoration IDs that can be used.

Functions

Link copied to clipboard
fun run()

Restores various credentials, DIDs, key pairs, link secrets, and messages. This method should be called to initialize or restore the necessary components.