Responses
[Common Library Functions and Constants]


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)

Function Documentation

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().

Parameters:
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.
Return values:
XACML_RESULT_SUCCESS Success.
XACML_RESULT_INVALID_PARAMETER Invalid parameter.
See also:
xacml_response_add_obligation(), xacml_response_get_obligation_count()

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

Parameters:
response XACML response to update.
request Request containing the set of attributes that where used by the policy implementation to reach the decision.
Return values:
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.