Creates a new auth context and returns the handle.
#include "am_auth.h" AM_EXPORT am_status_t am_auth_create_auth_context(am_auth_context_t *auth_ctx, const char *org_name, const char *cert_nick_name, const char *url);
This function takes the following parameters:
Pointer to the handle of the auth context.
Organization name to authenticate to. May be NULL to use value in property file.
The alias of the certificate to be used if the client is connecting securely. May be NULL in case of non-secure connection.
Service URL, for example:
http://pride.red.iplanet.com:58080/amserver
May be NULL, in which case the naming service URL property is used.
This function returns am_status_t with one of the following values:
If auth context was successfully created.
If unable to allocate memory for the handle.
If the auth_ctx parameter is NULL.
If the authentication initialization failed