Rate This Document
Findability
Accuracy
Completeness
Readability

Signing Data

Signs the provided message.

Item

Description

API path

/rest/kdc_agent/v1/proxy

Request method

POST

Request Header

Parameter

Value

Content-Type

application/json

Accept

application/json

Request Body

Parameter

Type

Specification

Required (Yes/No)

Description

taskId

String

64

Yes

Task ID. Each request must use a unique ID.

version

String

8

Yes

Payload format version in VR format, initially set to 26.0.

msgType

Int

32

Yes

Service message type, with a value of 0x0022.

data

Object

-

No

Service message entity in key:value format.

data.data

String

1024

Yes

Message content to be signed.

data.hashAlgorithm

String

16

No

Hash algorithm. Default value: SHA256. Other options include SHA384 and SHA512.

Request Body Example

{
"taskId": "SDFMOASDMNFIOASMD",
"version": "26.0",
"msgType": "0x0022",
"data": {
"data": "VGhpcyBpcyBhIEdPT0QgZGF5IQo"
}
}

Response Header

Parameter

Value

Content-Type

application/json

Response Body

Parameter

Type

Specification

Description

retCode

Int

32

Error code

retMsg

String

64

Error message

data

Object

-

Custom service data

data.signedData

String

-

Signature result

Response Body Example

{
"retCode": 0,
"retMsg": "Success",
"data": {
"signedData": "YWJjZGVmZ2hpamsxMjM0NTY3ODkwYWJjZGVm"
}
}