aries / net.globalid.aries.storage.models.record / BaseRecord

BaseRecord

abstract class BaseRecord

Base record

This is based class which is used for creating your own kind of wallet records. The BaseRecord provides only general methods.

Constructors

<init>

Base record

BaseRecord()

Properties

createdAt

the created datetime of the record in UTC

var createdAt: ZonedDateTime?

id

the identifier

abstract val id: String

typeName

the name of record type

open val typeName: String

updatedAt

the last updated datetime of the record in UTC

var updatedAt: ZonedDateTime?

Functions

copyTagsFrom

Copies tags from source to current record

fun copyTagsFrom(source: BaseRecord): Unit

getTag

Gets attribute name value

fun getTag(name: String): String?

getTags

Gets record's tags

fun getTags(): Map<String, String>

removeTag

Removes attribute by name

fun removeTag(name: String): String?

requireTag

Gets attribute name value

fun requireTag(name: String): String

setTag

Sets attribute value to name

fun setTag(name: String, value: String?, encrypted: Boolean = true): Unit
fun setTag(name: String, value: Int?, encrypted: Boolean = true): Unit

Companion Object Properties

JSON_NAME_ID

const val JSON_NAME_ID: String

Inheritors

BasicMessageRecord

A record that represents state of the basic message protocol (see service for details). Tags are set for direction and connectionContext (connection ID) for filtering.

data class BasicMessageRecord : BaseRecord

ConnectionRecord

Represents a connection record in the agency wallet.

open class ConnectionRecord : BaseRecord

CredentialRecord

Credential record

open class CredentialRecord : BaseRecord

MediatorRecord

Holds data specific to using a mediator.

open class MediatorRecord : BaseRecord

ProofRecord

Represents a wallet record for the present proof protocol.

open class ProofRecord : BaseRecord

ProvisioningRecord

Represents a "base" provisioning record of an agent with the basic configuration properties that are needed for Aries agent operations and actions.

data class ProvisioningRecord : BaseRecord

TrustPingRecord

Represents a wallet record for the trust ping protocol.

open class TrustPingRecord : BaseRecord

VersionRecord

data class VersionRecord : BaseRecord