Add Document Digest
Porpose of the "Add document digest" operation is to avoid file transfering (if there is extra security requirements) out of internal network.
Operation add signable file digest (HASH) and file name to the file processing session.
1. The file digest and file name is attached to the file processing session;
2. The file description information is returned.
The Service provider's application sends the following GET request using TLS:
|String (64)||Mandatory||File processing session identifier|
The request must contain an Authorization header with an OAuth Introspect access token obtained via a Service provider's credentials grant flow.
|Array||Mandatory||File diggest and name array|
|String||Mandatory||The name of the file (with extension) from which the diggest was calculated|
|String||Mandatory||Calculated file digest in Base64 encoding. See note below.|
|String||Signature sequence index, starting with "0", which means the first signature|
File diggest calculation
Only SHA256 at this moment is supported.
Fist calculate SHA256 HASH from the file you need to sign. Then take SHA256 HASH and make HEX to Base64 encoding. For example encoding you can use https://base64.guru/converter/encode/hex
Example with one file digest and name
Example with multiple file digest and name
|File Identifier (documentId)|
|File size in bytes (allways will be "0" since file name and digest was added)|