Sun Java System Access Manager 7 2005Q4 C API Reference

Returns

This function returns am_status_t with one of the following values:

Value

Description

AM_SUCCESS

If the cookie was successfully encoded and copied into buf.

AM_INVALID_ARGUMENT

If the cookie or buffer was NULL or len was smaller than the size of the encoded value.

AM_FAILURE

Other error occurred while encoding cookie.