11.2.4.2 Save Resource


Interface Address /hub/saveResource
Description Store the credentials to the Hub. If the user stores it himself, the uid and the ownerUid should be the same. At this time, there is no need to create permissions to call directly; if the issuer stores it for the user after issuing the credentials, the uid should be the HubId of the issuer, and the ownerUid should be the HubId of the user. At this time, the user must have created permissions for it, otherwise the storage will fail.
Interface request parameter
No. Parameter Type Required Description
1 SaveResourceReq Y Wrapper class
SaveResourceReq
1 uid String Y Uid used to store resources
2 content String Y Resource information
3 url String N The address stored in the Hub. User self-storage is empty, issuer with storage required
4 ownerUid String Y Resource owner
5 grant String Y write means add;update means update
6 key String Y Key
7 sign String Y Signature
Interface response parameter
No. Parameter Type Description
1 SaveResourceResp Wrapper class
SaveResourceResp
1 url String Addresses stored in the Hub
2 encryptKey String the issuer with storage is empty. The user self-storage returns the KeyA encrypted by the user's Public key, and the user's private key decrypts KeyA to derive the plaintext Key. the credential Y stored in the Hub is encrypted by Key for AES-ECB processing.
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2021-10-31 20:10:52

results matching ""

    No results matching ""

    results matching ""

      No results matching ""