ocn-notary / snc.openchargingnetwork.notary / Rewrite

Rewrite

class Rewrite

A Rewrite object contains information about a previous Notary object.

Constructors

<init>

A Rewrite object contains information about a previous Notary object.

Rewrite(rewrittenFields: Map<String, Any?>, hash: String, rsv: String, signatory: String)

Properties

hash

the message hash of the overwritten message

val hash: String

rewrittenFields

Key-Value pairs of JsonPaths with a corresponding value that was overwritten

val rewrittenFields: Map<String, Any?>

rsv

the concatenated signature of the overwritten message

val rsv: String

signatory

the signer of the overwritten message

val signatory: String

Functions

verify

Verify a rewrite given a modified request.

fun verify(fields: List<String>, modifiedValues: OcpiRequest<*>, jsonPath: ParseContext, objectMapper: ObjectMapper): RewriteVerifyResult