HMAC
This API performs keyed hash.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/hmac
Input Parameters
Parameters | Description |
---|---|
username | User name (optional). |
password | Password associated with the user (optional). |
keyname | Name of the key to be used for HMAC. |
messagetext | Data on which HMAC is to be performed. |
certAlias | Client certificate alias for making SSL connections (optional). |
certPass | Password for the provided certificate alias (optional). |
Sample REST call for cxf
request
{
"HMAC": {
"username": "cryptouser",
"password": "safenet123",
"keyname": "testHMACKey",
"messagetext": "akhi"
}
}
response
{
"HMACResponse": {
"hmac_Response": "100010F331F2F515D8D2A2CF3D84A23F82CDB4B19C6661"
}
}
Sample SOAP Parameters
<prot:HMAC>
<username>cryptouser</username>
<password>qwerty1234</password>
<keyname>hmacsha1vt</keyname>
<messagetext>This is a message suitable for HMAC signing...</messagetext>
</prot:HMAC>
Output
HMAC in Hex.
<ns1:HMACResponse xmlns:ns1="http://dsws.org/protectappws/">CDBE56D386CDD6D0EBBBC481ACCA84CD60CE2919 </ns1:HMACResponse>