Sun Java System Access Manager 7 2005Q4 C API Reference

am_sso_set_property()

Sets a property in the session.

Syntax

#include "am_sso.h"
AM_EXPORT am_status_t
am_sso_set_property(am_sso_token_handle_t sso_token_handle,
                     const char *name,
                     const char *value);

Parameters

This function takes the following parameters:

sso_token_handle

The session handle.

name

The property name.

value

The property value.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the property was successfully set.

AM_INVALID_ARGUMENT

If the sso_token_handle is invalid.

AM_FAILURE

If any other error occurred.

Details

Session handle for this token ID obtained before this call will not be current (not have the newly set property) after this call. Call am_sso_validate_token() to update the handle with the new set of properties.