ocn-notary / snc.openchargingnetwork.notary

Package snc.openchargingnetwork.notary

Types

Notary

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

class Notary

OcpiHeaders

OCPI unique id and routing headers. Excludes X-Request-ID as this is always replaced.

data class OcpiHeaders

OcpiRequest

OcpiRequest provides the values which should be signed.

data class OcpiRequest<T>

OcpiUrlEncodedParameters

OCPI url-encoded parameters for paginated requests OR particular token module requests.

data class OcpiUrlEncodedParameters

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