RpcAuthIssuerSignature

RpcAuthIssuer implementation that authorizes each call with using AssertionRpcAuth object wrapped in cose sign1 object signed by a private key. In addition to payload field in in authorization Cbor map it adds a sign1 field that holds signed data.

Constructors

Link copied to clipboard
constructor(clientId: String, signingKey: AsymmetricKey)

Functions

Link copied to clipboard
open suspend override fun auth(target: String, method: String, payload: Bstr): DataItem

Returns authorization for the RPC call defined by target and method endpoints and call parameters serialized as Cbor array in payload.