Digital Signature
Generate the Digital Signature Using an Executable JAR file (Recommended)
To generate your digital signature using the executable JAR file, follow these steps:
- Download Java 6.0 or greater. If it is not installed on your computer, go to: https://java.com/en/download
- Download the Digital Signature executable JAR file.
- Use the following command to run the executable JAR file:
java -jar DigitalSignatureUtil-1.0.0.jar DigitalSignatureUtil {requestUrl} {consumerId} {privateKey} {requestMethod} {filePath}
The executable JAR file uses five parameters, see the table below:
Name | Description | Required |
---|---|---|
requestUrl | The full URL to call, including path and query parameters | Yes |
consumerId | The Consumer ID retrieved from Developer Center after login | Yes |
privateKey | The vendor’s Base-64-encoded, PKCS#8 stored Private Key | Yes |
requestMethod | Use method GET (all capital letters) to call this API | Yes |
filePath | The absolute (full) path of the file desired for the digital signature and timestamp. The digital signature and timestamp can also be viewed in the console. | Yes |
Note: Your program must run this executable JAR file in the directory where the executable JAR file is located.
Running the executable JAR file returns the following two headers as the console output.
WM_SEC.AUTH_SIGNATURE
WM_SEC.TIMESTAMP
Note: Generate the signature and a timestamp for every API call, even if it is for the same API.
Check out the full Authentication guide to try other methods for generating your digital signature.
Updated 21 days ago