Encryption
Last updated
Was this helpful?
Last updated
Was this helpful?
An encryption request can contain multiple EncReqObject. This will help to encrypt bulk requests which may have different tenant-id and/or method ( AES / RSA ).
EncrReqObject contains data to be encrypted and meta-data required to perform the encryption.
{"tenantId":"pb.jalandhar","type":"Important","value":{"key":"secret"}}
The returned encrypted value will have the same structure as the input value.
A Sign request containing tenant id and the string value to be signed.
The key used for signing will be determined based on tenant id.
The value to be signed.
Response to sign api containing the actual value and its corresponding signature.
{"value":"claim","signature":"436958|JLXQk7KP0y1nU3YHKLe0aq7EJp1iPEfNcIrbsgBh2u2U9aLCYfr8tVWGPud7JNQ5uiKJ1gTMFgzGU4XfTwUZDENHQ6mpFOhxH+LVVggj9QmDZk629ce2X7ju4aHuX6WDBx9/bxHstE8r5F47sP7f6ryY52HDQ5D5/8b7SX3WkkE="}
Response contains the value that has been signed and the value of signature.
A Verify request containing the value and its corresponding signature.
The claim to be verified
The signature for the claim
Response to the verify api containing if the signature was correct for the input claim
{"verified":true}
Response returns if the provided signature is correct for the given value.
A request to rotate key for a given tenant
The tenantId for which the key needs to be changed.
An acknowledgement if the key rotation request was successful.
Acknowldgement if the operation was successful.