Sun OpenSSO Enterprise 8.0 C API Reference for Application and Web Policy Agent Developers

Single Sign-on Data Types

The single sign-on data types defined in <am_sso.h> are:

am_sso_token_handle_t

A pointer to the session information object.

Syntax

#include "am_sso.h"
typedef struct am_sso_token_handle *am_sso_token_handle_t;

Members

am_sso_token_handle is an opaque structure with no accessible members.

am_sso_token_listener_func_t

Listener function declaration.

Syntax

#include "am_sso.h"
typedef void (*am_sso_token_listener_func_t)(
                 const am_sso_token_handle_t sso_token_handle,
                 const am_sso_token_event_type_t event_type,
                 const time_t event_time,
                 void *args);

Members

am_sso_token_listener_func_t has the following members:

sso_token_handle

Pointer to the session information object.

event_type

Takes one of the following values from the am_sso_token_event_type_t enumeration (defined in the <am_sso.h> header file):

typedef enum {
    AM_SSO_TOKEN_EVENT_TYPE_UNKNOWN = 0,
    AM_SSO_TOKEN_EVENT_TYPE_IDLE_TIMEOUT = 1,
    AM_SSO_TOKEN_EVENT_TYPE_MAX_TIMEOUT = 2,
    AM_SSO_TOKEN_EVENT_TYPE_LOGOUT = 3,
    AM_SSO_TOKEN_EVENT_TYPE_DESTROY = 5
} am_sso_token_event_type_t;
event_time

Takes a value based on the standard time_t data type that represents the time at which the change event occurred.

*args

Pointer to application-defined parameters.