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

am_auth_name_callback_t

Retrieves user name information.

Details

am_auth_name_callback_t is a C implementation of the Java javax.security.auth.callback.NameCallback class.

Syntax

#include "am_auth.h"
typedef struct am_auth_name_callback_info {
    const char *prompt;
    const char *default_name;
    const char *response; /* name */
} am_auth_name_callback_t;

Members

prompt

Pointer to the user's prompt.

default_name

Pointer to the default name displayed with the user prompt, if any.

response

Pointer to the name 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.