Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 125817 of NPN_GetAuthenticationInfo

  • Revision slug: NPN_GetAuthenticationInfo
  • Revision title: NPN_GetAuthenticationInfo
  • Revision id: 125817
  • Created:
  • Creator: jreschke
  • Is current revision? No
  • Comment 30 words added, 12 words removed

Revision Content

{{ Np-browser-api() }}

Summary

The function is called by plugins to get the authentication information from browser.

Syntax

#include <npapi.h>

NPError NPN_GetAuthenticationInfo(NPP instance,
                                  const char *protocol,
                                  const char *host,
                                  int32_t port,
                                  const char *scheme,
                                  const char *realm,
                                  char **username,
                                  uint32_t *ulen,
                                  char **password,
                                  uint32_t *plen);

Parameters

This function has the following parameters:

instance
Pointer to the current plug-in instance.
protocol
Protocol name (URI scheme).
host
Host name.
port
Port number.
scheme
HTTP authentication scheme name (???)
realm
HTTP authentication realm
username
Address of string pointer in which the username will be stored (note: not zero-terminated)
ulen
Length of username
password
Address of string pointer in which the password will be stored (note: not zero-terminated)
plen
Length of password

Returns

  • If successful, the function returns NPERR_NO_ERROR.
  • If unsuccessful, the function returns an error code. For possible values, see Error Codes.

Description

...

See also

NPN_SetValueForURL, NPN_GetValueForURL

Revision Source

<p>{{ Np-browser-api() }}</p>
<h3 name="Summary">Summary</h3>
<p>The function is called by plugins to get the authentication information from browser.</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;

NPError NPN_GetAuthenticationInfo(NPP instance,
                                  const char *protocol,
                                  const char *host,
                                  int32_t port,
                                  const char *scheme,
                                  const char *realm,
                                  char **username,
                                  uint32_t *ulen,
                                  char **password,
                                  uint32_t *plen);

</pre>
<h3 name="Parameters">Parameters</h3>
<p>This function has the following parameters:</p>
<dl> <dt>instance</dt> <dd>Pointer to the current plug-in instance.</dd>
</dl>
<dl> <dt>protocol</dt> <dd>Protocol name (URI scheme).</dd>
</dl>
<dl> <dt>host</dt> <dd>Host name.</dd>
</dl>
<dl> <dt>port</dt> <dd>Port number.</dd>
</dl>
<dl> <dt>scheme</dt> <dd>HTTP authentication scheme name (???)</dd>
</dl>
<dl> <dt>realm</dt> <dd>HTTP authentication realm</dd>
</dl>
<dl> <dt>username</dt> <dd>Address of string pointer in which the username will be stored (note: not zero-terminated)</dd>
</dl>
<dl> <dt>ulen</dt> <dd>Length of username</dd>
</dl>
<dl> <dt>password</dt> <dd>Address of string pointer in which the password will be stored (note: not zero-terminated)</dd>
</dl>
<dl> <dt>plen</dt> <dd>Length of password</dd>
</dl>
<h3 name="Returns">Returns</h3>
<ul> <li>If successful, the function returns NPERR_NO_ERROR.</li> <li>If unsuccessful, the function returns an error code. For possible values, see <a href="/en/NPAPI/Constants#Error_Codes" title="en/NPAPI/Constants#Error_Codes">Error Codes</a>.</li>
</ul>
<h3 name="Description">Description</h3>
<p>...</p>
<p>See also</p>
<p><a href="/en/NPN_SetValueForURL" title="en/NPN_SetValueForURL">NPN_SetValueForURL</a>, <a href="/en/NPN_GetValueForURL" title="en/NPN_GetValueForURL">NPN_GetValueForURL</a></p>
Revert to this revision