HMACVerify
This API verifies keyed hash.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/hmacVerify
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. | 
| mac | Message authentication code for verification. | 
| certAlias | Client certificate alias for making SSL connections (optional). | 
| certPass | Password for the provided certificate alias (optional). | 
Sample REST call for cxf
request
    {
        "HMAC_Verify": {
            "username": "cryptouser",
            "password": "safenet123",
            "keyname": "testHMACKey",
            "messagetext": "akhi",
            "mac": "100010F331F2F515D8D2A2CF3D84A23F82CDB4B19C6661"
        }
    }
response
{
    "HMACVerifyResponse": {
        "hmac_Verify_Result": "true"
    }
}
Sample SOAP Parameters
    <prot:HMAC_Verify>
        <username>cryptouser</username>
        <password>qwerty1234</password>
        <keyname>hmacsha1vt</keyname>
        <messagetext>This is a message suitable for HMAC signing...</messagetext>
        <mac>CDBE56D386CDD6D0EBBBC481ACCA84CD60CE2919</mac>
    </prot:HMAC_Verify>
Output
boolean – result of HMAC verification.
    <ns1:HMAC_VerifyResponse xmlns:ns1="http://dsws.org/protectappws/">true</ns1:HMAC_VerifyResponse>