Functions | |
xacml_result_t | xacml_response_get_obligation (const xacml_response_t response, size_t num, xacml_obligation_t *obligation) |
xacml_result_t | xacml_response_set_request_context (xacml_response_t response, xacml_request_t request) |
xacml_result_t xacml_response_get_obligation | ( | const xacml_response_t | response, | |
size_t | num, | |||
xacml_obligation_t * | obligation | |||
) |
Get the value of an obligation
Retrieves the obligation based on the its index. The total number of subject obligations can be determined by calling xacml_response_get_obligation_count().
response | The response to inspect. | |
num | Obligation index. | |
obligation | Pointer to be set to the obligation. The caller must not modify or free this value. |
XACML_RESULT_SUCCESS | Success. | |
XACML_RESULT_INVALID_PARAMETER | Invalid parameter. |
References XACML_RESULT_INVALID_PARAMETER, and XACML_RESULT_SUCCESS.
xacml_result_t xacml_response_set_request_context | ( | xacml_response_t | response, | |
xacml_request_t | request | |||
) |
Set the value of the request attributes used to reach a decision
response | XACML response to update. | |
request | Request containing the set of attributes that where used by the policy implementation to reach the decision. |
XACML_RESULT_SUCCESS | Success. | |
XACML_RESULT_INVALID_PARAMETER | Invalid parameter. |
References xacml_request_destroy(), xacml_request_init(), XACML_RESULT_INVALID_PARAMETER, and XACML_RESULT_SUCCESS.