notary / shareandcharge.openchargingnetwork.notary

Package shareandcharge.openchargingnetwork.notary

Types

Notary

The Open Charging Network Notary signs OCPI requests and verifies OCN Signatures.

class Notary

OcpiHeaders

Possible OCPI request/response headers

data class OcpiHeaders

OcpiRequest

OcpiRequest provides the values which should be signed.

data class OcpiRequest<T>

Rewrite

A Rewrite object contains information about a previous Notary object.

class Rewrite

RewriteVerifyResult

Result of the Rewrite verify method.

data class RewriteVerifyResult

VerifyResult

Result of the verify method.

data class VerifyResult

Extensions for External Classes

kotlin.String

Functions

signerOfMessage

Wrapper for Web3j Sign.signedPrefixedMessageToKey which accepts a hex string signature and returns a 0x-prefixed address.

fun signerOfMessage(message: String, signature: String): String

signStringMessage

Wrapper replacing Web3j Sign.signPrefixedMessage with String input and output

fun signStringMessage(message: String, ecKeyPair: ECKeyPair): String