RpcAuthIssuerAssertion

class RpcAuthIssuerAssertion(clientId: String, secureArea: SecureArea, deviceAttestationId: String) : RpcAuthIssuer

RpcAuthIssuer implementation that authorizes each call with using AssertionRpcAuth object signed by a secure device key. In addition to payload field in in authorization Cbor map it adds an assertion field that holds DeviceAssertion.

Constructors

Link copied to clipboard
constructor(clientId: String, secureArea: SecureArea, deviceAttestationId: String)

Properties

Link copied to clipboard
val lock: Mutex

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.