Updated on 2023-01-18 GMT+08:00

Querying an ABE User Key Application

Function

Querying an ABE User Key Application

URI

POST /v1/datashare/query-abekey

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

orgID

Yes

String

Organization ID.

channelID

Yes

String

Channel ID.

cryptoMethod

Yes

String

Encryption method, which is fixed at SW.

cert

Yes

String

Certificate.

sk

Yes

String

Private key.

timestamp

Yes

String

Timestamp.

provider

Yes

String

Authorizer identifier.

applyer

Yes

String

Applicant identifier.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

applyer

String

Applicant identifier.

applyerName

String

Applicant name.

provider

String

Authorizer identifier.

providerName

String

Authorizer name.

service

String

Service name of the authorizer.

price

Integer

Price.

applyTime

String

Application time.

encryptedABEKey

String

Encrypted ABE key.

status

String

Application status. The value request indicates that the application is not authorized, and the value ready indicates that the application has been processed.

reason

String

Reason.

lockProof

String

Proof.

attributesJson

String

Attribute.

Status code: 500

Table 3 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMsg

String

Error description.

Example Requests

None

Example Responses

Status code: 200

ABE user key order information.

{
  "applyer" : "did:hwid:mfqqdiW8V64JbPFgQsoiv",
  "applyerName" : "",
  "provider" : "did:hwid:FahQr32NgQZWjGRiCZc37C",
  "providerName" : "",
  "service" : "",
  "price" : 0,
  "applyTime" : "1672985584",
  "encryptedABEKey" : "",
  "status" : "ready",
  "reason" : "",
  "lockProof" : "",
  "attributesJson" : "{\"att1\":\"YXR0MW5hbWU=\",\"att2\":\"YXR0Mm5hbWU=\",\"att3\":\"NQ==\"}"
}

Status code: 500

Error response.

{
  "errorCode" : "BCS.5002046",
  "errorMsg" : "Incorrect number of arguments"
}

Status Codes

Status Code

Description

200

ABE user key order information.

500

Error response.

Error Codes

See Error Codes.