Sun Java System Access Manager 7 2005Q4 C API Reference

am_auth_password_callback_info

Password callback structure.

This is a C implementation of the javax.security.auth.callback. PasswordCallback class used to submit authentication callback requirements to the Access Manager authentication service.

Syntax

#include "am_auth.h"
typedef struct am_auth_password_callback_info {
    const char *prompt;
    boolean_t echo_on;
    const char *response; /* password */
} am_auth_password_callback_t;

Members

This structure has the following members:

prompt

Prompt for the password, if any.

Memory for the prompt is allocated by the C SDK in am_auth_login() and freed when the authentication context is destroyed using am_auth_destroy_auth_context().

echo_on

Whether the password should be displayed as it is typed.

response

The password to be submitted to Access Manager.

Memory for the response must be allocated and freed by the caller.

Details

See am_auth_test.c in the C SDK samples for an example of how to use the password callback.