SignedData - corda

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> | A serialized piece of data and its signature. Enforces signature validity in order to deserialize the data contained within. `SignedData(raw: SerializedBytes<T>, sig: WithKey)`

### Properties

#### raw | the raw serialized data. `val raw: SerializedBytes<T>`
#### sig | the (unverified) signature for the data. `val sig: WithKey`

### Functions

#### verified | Return the deserialized data if the signature can be verified. `fun verified(): T`
#### verifyData | Verify the wrapped data after the signature has been verified and the data deserialised. Provided as an extension point for subclasses. `open fun verifyData(data: T): Unit`