notary
Module Contents
alltypes
Module Contents
kotlin.String
Module Contents
fun
String
.
toChecksumAddress
(
)
:
String
class
Notary
Module Contents
Notary
(
)
@JvmStatic
fun
compress
(
input
:
ByteArray
)
:
ByteArray
@JvmStatic
fun
decompress
(
input
:
ByteArray
)
:
ByteArray
@JvmStatic
fun
deserialize
(
ocnSignature
:
String
)
:
Notary
var
fields
:
MutableList
<
String
>
var
hash
:
String
var
rewrites
:
MutableList
<
Rewrite
>
var
rsv
:
String
fun
serialize
(
)
:
String
fun
sign
(
valuesToSign
:
OcpiRequest
<
*
>
,
privateKey
:
String
)
:
Notary
var
signatory
:
String
fun
stash
(
rewrittenFields
:
Map
<
String
,
Any
?
>
)
:
Notary
fun
verify
(
valuesToVerify
:
OcpiRequest
<
*
>
)
:
VerifyResult
data
class
OcpiHeaders
Module Contents
OcpiHeaders
(
correlationId
:
String
?
=
null
,
fromCountryCode
:
String
?
=
null
,
fromPartyId
:
String
?
=
null
,
toCountryCode
:
String
?
=
null
,
toPartyId
:
String
?
=
null
,
limit
:
String
?
=
null
,
totalCount
:
String
?
=
null
,
link
:
String
?
=
null
,
location
:
String
?
=
null
)
var
correlationId
:
String
?
var
fromCountryCode
:
String
?
var
fromPartyId
:
String
?
var
limit
:
String
?
var
link
:
String
?
var
location
:
String
?
var
toCountryCode
:
String
?
var
toPartyId
:
String
?
var
totalCount
:
String
?
data
class
OcpiRequest
<
T
>
Module Contents
OcpiRequest
(
headers
:
OcpiHeaders
,
params
:
Map
<
String
,
Any
?
>
?
=
null
,
body
:
T
?
=
null
)
var
body
:
T
?
var
headers
:
OcpiHeaders
var
params
:
Map
<
String
,
Any
?
>
?
class
Rewrite
Module Contents
Rewrite
(
rewrittenFields
:
Map
<
String
,
Any
?
>
,
hash
:
String
,
rsv
:
String
,
signatory
:
String
)
val
hash
:
String
val
rewrittenFields
:
Map
<
String
,
Any
?
>
val
rsv
:
String
val
signatory
:
String
fun
verify
(
fields
:
List
<
String
>
,
modifiedValues
:
OcpiRequest
<
*
>
,
jsonPath
:
ParseContext
,
objectMapper
:
ObjectMapper
)
:
RewriteVerifyResult
data
class
RewriteVerifyResult
Module Contents
RewriteVerifyResult
(
isValid
:
Boolean
,
error
:
String
?
=
null
,
previousValues
:
OcpiRequest
<
*
>
?
=
null
)
val
error
:
String
?
val
isValid
:
Boolean
val
previousValues
:
OcpiRequest
<
*
>
?
data
class
VerifyResult
Module Contents
VerifyResult
(
isValid
:
Boolean
,
error
:
String
?
=
null
)
val
error
:
String
?
val
isValid
:
Boolean
package
shareandcharge.openchargingnetwork.notary
Module Contents
kotlin.String
Module Contents
fun
String
.
toChecksumAddress
(
)
:
String
class
Notary
Module Contents
Notary
(
)
@JvmStatic
fun
compress
(
input
:
ByteArray
)
:
ByteArray
@JvmStatic
fun
decompress
(
input
:
ByteArray
)
:
ByteArray
@JvmStatic
fun
deserialize
(
ocnSignature
:
String
)
:
Notary
var
fields
:
MutableList
<
String
>
var
hash
:
String
var
rewrites
:
MutableList
<
Rewrite
>
var
rsv
:
String
fun
serialize
(
)
:
String
fun
sign
(
valuesToSign
:
OcpiRequest
<
*
>
,
privateKey
:
String
)
:
Notary
var
signatory
:
String
fun
stash
(
rewrittenFields
:
Map
<
String
,
Any
?
>
)
:
Notary
fun
verify
(
valuesToVerify
:
OcpiRequest
<
*
>
)
:
VerifyResult
data
class
OcpiHeaders
Module Contents
OcpiHeaders
(
correlationId
:
String
?
=
null
,
fromCountryCode
:
String
?
=
null
,
fromPartyId
:
String
?
=
null
,
toCountryCode
:
String
?
=
null
,
toPartyId
:
String
?
=
null
,
limit
:
String
?
=
null
,
totalCount
:
String
?
=
null
,
link
:
String
?
=
null
,
location
:
String
?
=
null
)
var
correlationId
:
String
?
var
fromCountryCode
:
String
?
var
fromPartyId
:
String
?
var
limit
:
String
?
var
link
:
String
?
var
location
:
String
?
var
toCountryCode
:
String
?
var
toPartyId
:
String
?
var
totalCount
:
String
?
data
class
OcpiRequest
<
T
>
Module Contents
OcpiRequest
(
headers
:
OcpiHeaders
,
params
:
Map
<
String
,
Any
?
>
?
=
null
,
body
:
T
?
=
null
)
var
body
:
T
?
var
headers
:
OcpiHeaders
var
params
:
Map
<
String
,
Any
?
>
?
class
Rewrite
Module Contents
Rewrite
(
rewrittenFields
:
Map
<
String
,
Any
?
>
,
hash
:
String
,
rsv
:
String
,
signatory
:
String
)
val
hash
:
String
val
rewrittenFields
:
Map
<
String
,
Any
?
>
val
rsv
:
String
val
signatory
:
String
fun
verify
(
fields
:
List
<
String
>
,
modifiedValues
:
OcpiRequest
<
*
>
,
jsonPath
:
ParseContext
,
objectMapper
:
ObjectMapper
)
:
RewriteVerifyResult
data
class
RewriteVerifyResult
Module Contents
RewriteVerifyResult
(
isValid
:
Boolean
,
error
:
String
?
=
null
,
previousValues
:
OcpiRequest
<
*
>
?
=
null
)
val
error
:
String
?
val
isValid
:
Boolean
val
previousValues
:
OcpiRequest
<
*
>
?
fun
signerOfMessage
(
message
:
String
,
signature
:
String
)
:
String
fun
signStringMessage
(
message
:
String
,
ecKeyPair
:
ECKeyPair
)
:
String
data
class
VerifyResult
Module Contents
VerifyResult
(
isValid
:
Boolean
,
error
:
String
?
=
null
)
val
error
:
String
?
val
isValid
:
Boolean