Sun Java System Access Manager 7 2005Q4 C API Reference

am_policy_result

Policy evaluation results from the policy interface in the C SDK.

Memory for am_policy_result is allocated by am_policy_evaluate() in the C SDK and should be freed by calling am_policy_result_destroy() .

Syntax

#include "am_policy.h"
typedef struct am_policy_result {
    const char *remote_user;
    const char *remote_IP;
    am_map_t advice_map;
    am_map_t attr_response_map;
} am_policy_result_t;

Members

This structure has the following members:

remote_use

The remote user.

remote_IP

The remote IP.

advice_map

Any policy advices.

attr_response_map

Any user attributes.

Details

See am_policy_test.c in the C SDK samples for an example of how to use am_policy_result_t in the policy interfaces.