Resource

sealed class Resource

An abstract class representing the structure and common functionality available on all Resources.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Properties

Link copied to clipboard
abstract val data: ResourceData
Link copied to clipboard
Link copied to clipboard
abstract var signature: String?

Functions

Link copied to clipboard
fun sign(did: <Error class: unknown class>)

Signs the Resource using the specified BearerDid

Link copied to clipboard
open override fun toString(): String

Uses Json to serialize the Resource as a json string.

Link copied to clipboard
fun verify()

Verifies the signature of the Resource.