Related links
Developer Resources
Encryption key validation
Validate your private encryption key using
validatePvtKey API.
Quick links
Syntax for ‘validatePvtKey’ API:
https://<server address>/evs/validatePvtKey
Server address:
Use getServerAddress API to retrieve the IDrive server address.
HTTP method: POST
- Input parameters:
-
uid |
username or email address |
pwd |
password |
pvtkey |
Private encryption key |
- Output:
- Below is a sample XML output generated during Encryption key validation:
<tree message="SUCCESS" desc="VALIDATED SUCCESSFULLY"/>
- Description:
-
- tree
Root node with attributes; message and desc.
- message
This attribute describes the operation as SUCCESS or FAIL.
- desc
This attribute displays the error(s) that are generated during an invalid operation.
- Following cases explain the expected outputs during INVALID operations:
-
- Case 1: Empty Username or Password
The output is as follows:
<tree message="ERROR" desc="INVALID PARAMETERS"/>
- Case 2: Invalid Username or Password
The output is as follows:
<tree message="ERROR" desc="INVALID USER"/>
Or
<tree message="ERROR" desc="INVALID PASSWORD"/>
- Case 3: Invalid Encryption key
The output is as follows:
<tree message="ERROR" desc="ENCRYPTION VALIDATION FAILED"/>
- Code snippets for Java, PHP, Python and Ruby:
-
Java:
PHP:
Python:
Ruby: