Sun Java System Access Manager 7 2005Q4 C API Reference

am_auth_locale

Language locale structure.

Syntax

#include "am_auth.h"
typedef struct am_auth_locale {
    const char *language;
    const char *country;
    const char *variant;
} am_auth_locale_t;

Members

This structure has the following members:

language

A valid ISO Language Code. These codes are the lower case, two-letter codes as defined by ISO-639. You can find a full list of these codes at a number of sites, such as:

http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt

country

A valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as:

http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html

variant

A vendor or browser-specific code. For example, WIN for Windows, MAC for Macintosh, and POSIX for POSIX.

Details

See am_auth_test.c in the C SDK samples for an example of how to use this structure with the locale callback.