Sun Java System Access Manager 7 2005Q4 C API Reference

am_policy_notify()

Refreshes policy cache when a policy notification is received by the client.

Syntax

#include "am_policy.h"
 AM_EXPORT am_status_t am_policy_notify(am_policy_t policy_handle, 
                                        const char *notification_data, 
                                        size_t notification_data_len);

Parameters

This function takes the following parameters:

policy_handle

Opaque handle to the policy service

notification_data

The notification message as an XML String.

notification_data_len

Length of the notification data.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the call was successful.

AM_*

If any error occurs, the type of error indicated by the status value.