open class SignedData<T : Any>
A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within.
raw
- the raw serialized data.
sig
- the (unverified) signature for the data.
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. |
val raw: SerializedBytes<T>
the raw serialized data. |
|
val sig: WithKey
the (unverified) signature for the data. |
fun verified(): T
Return the deserialized data if the signature can be verified. |
|
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. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |