Azure Keyvault Sign API - Request body “value” encoding format

半世苍凉 提交于 2019-12-11 18:13:23

问题


Referring to the Azure keyvault Sign API at https://docs.microsoft.com/en-us/rest/api/keyvault/sign/sign. Its not clear if the "value" which is string (in request and response both), how the API expects the encoding for binary strings like digest and how the response has this 'value' encoded? Is this in base64? If so, Azure has any difference in base64? Any sample code showing this REST API request/response processing?


回答1:


For the Sign API, the value is a digest. This page tells that it needs to be base64url encoded, and conforming to JOSE specifications. The actual value will vary according to the signing algorithm. Links to libraries and sample code in many programming languages can be found here.



来源:https://stackoverflow.com/questions/52503318/azure-keyvault-sign-api-request-body-value-encoding-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!