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

am_auth_language_callback_t

Retrieves the locale for localizing text.

Details

am_auth_language_callback_t is a C implementation of the Java javax.security.auth.callback.LanguageCallback class.


Note –

See am_auth_locale_t for the individual components.


Syntax

#include "am_auth.h"
typedef struct am_auth_language_callback_info {
    am_auth_locale_t *locale;
    am_auth_locale_t *response; /* locale */
} am_auth_language_callback_t;

Members

locale

Pointer to the am_auth_locale_t object defining the locale.

response

Pointer to the am_auth_locale_t object being submitted back to OpenSSO Enterprise.

Memory Concerns

Memory is allocated by am_auth_login(), and freed by calling am_auth_destroy_auth_context(). Memory for the response must be allocated and freed by the caller.