GetSecretData
This API retrieves KMIP secret data from Key Manager.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/kmip/getSecretData
Input Parameters
Parameters | Description |
---|---|
certAlias | Client certificate alias for making SSL connections (optional). |
certPass | Password for the provided certificate alias (optional). |
dataType | Type of the secret data to be added to Key Manager. Valid values are Password and Seed. It is an optional parameter. If no value is provided, default value, Password is used. |
secretDataName | Name for the secret data. |
UID | Unique identification number for the secret data being retrieved. UID is generated when the secret data is added to the Key Manager. |
Note
Either of secretDataName
or UID
parameter is used to retrieve the secret data from the Key Manager. If both these parameters are specified, then preference is given to secretDataName
.
Sample REST call for cxf using secretDataName
request
{
"GetSecretDataRequest": {
"certAlias": "privatekey",
"certPassword": "asdf1234",
"dataType": "Password",
"secretDataName": "secdata1"
}
}
response
{
"GetSecretDataResponse": {
"secretDataResponse": "2E1717D057F2BA2CBA7F6EFF6D37F846CE2848C92C1A0BCBF4F4D3011304BD57"
}
}
Sample REST call for cxf using UID
request
{
"GetSecretDataRequest": {
"certAlias": "privatekey",
"certPassword": "asdf1234",
"dataType": "Password",
"UID": "09B5A600CF2B84EEE87A294750536FDCD66442122817BE"
}
}
response
{
"GetSecretDataResponse": {
"secretDataResponse": "2E1717D057F2BA2CBA7F6EFF6D37F846CE2848C92C1A0BCBF4F4D3011304BD57"
}
}