corda / net.corda.core.crypto / SignedData

SignedData

open class SignedData<T : Any>

A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within.

Parameters

raw - the raw serialized data.

sig - the (unverified) signature for the data.

Constructors

<init>

SignedData(raw: SerializedBytes<T>, sig: WithKey)

A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within.

Properties

raw

val raw: SerializedBytes<T>

the raw serialized data.

sig

val sig: WithKey

the (unverified) signature for the data.

Functions

verified

fun verified(): T

Return the deserialized data if the signature can be verified.

verifyData

open fun verifyData(data: T): Unit

Verify the wrapped data after the signature has been verified and the data deserialised. Provided as an extension point for subclasses.

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.