Sun Java System Access Manager 7 2005Q4 C API Reference

am_web_get_token_from_assertion()

Returns the SSO Token from the given SAML assertion.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_web_get_token_from_assertion(char *assertion, char **token);

Parameters

This function takes the following parameters:

assertion

The SAML assertion as an XML string.

token

Pointer to contain the SSO Token ID.

The returned SSO Token ID should be freed using am_web_free().

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.