/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsISupports.idl"
interface nsIPrincipal;
/** *nsIHttpAuthManager * *ThisserviceprovidesaccesstocachedHTTPauthentication *usercredentials(domain,username,password)forsites *visitedduringthecurrentbrowsersession. * *ThisinterfaceexiststoprovideotherHTTPstackswiththe *abilitytoshareHTTPauthenticationcredentialswithNecko. *ThisiscurrentlyusedbytheJavaplugin(version1.5and *higher)toavoidduplicateauthenticationpromptswhenthe *JavaclientfetchescontentfromaHTTPsitethattheuser *hasalreadyloggedinto.
*/
[scriptable, builtinclass, uuid(54f90444-c52b-4d2d-8916-c59a2bb25938)]
interface nsIHttpAuthManager : nsISupports
{ /** *Lookupauthidentity. * *@paramaScheme *theURLscheme(e.g.,"http").NOTE:forproxyauthentication, *thisshouldbe"http"(thisincludesauthenticationforCONNECT *tunneling). *@paramaHost *thehostoftheserverissuingachallenge(ASCIIonly). *@paramaPort *theportoftheserverissuingachallenge. *@paramaAuthType *optionalstringidentifyingauthtypeused(e.g.,"basic") *@paramaRealm *optionalstringidentifyingauthrealm. *@paramaPath *optionalstringidentifyingauthpath.emptyforproxyauth. *@paramaUserDomain *returnvaluecontaininguserdomain. *@paramaUserName *returnvaluecontainingusername. *@paramaUserPassword *returnvaluecontaininguserpassword. *@paramaIsPrivate *whethertolookupaprivateorpublicidentity(theyare *storedseparately,forusebyprivatebrowsing) *@paramaPrincipal *theprincipalfromwhichtoderiveinformationaboutwhich *app/mozbrowserisinuseforthisrequest
*/
[must_use] void getAuthIdentity(in ACString aScheme,
in ACString aHost,
in int32_t aPort,
in ACString aAuthType,
in ACString aRealm,
in ACString aPath,
out AString aUserDomain,
out AString aUserName,
out AString aUserPassword,
[optional] in boolean aIsPrivate,
[optional] in nsIPrincipal aPrincipal);
/** *Storeauthidentity. * *@paramaScheme *theURLscheme(e.g.,"http").NOTE:forproxyauthentication, *thisshouldbe"http"(thisincludesauthenticationforCONNECT *tunneling). *@paramaHost *thehostoftheserverissuingachallenge(ASCIIonly). *@paramaPort *theportoftheserverissuingachallenge. *@paramaAuthType *optionalstringidentifyingauthtypeused(e.g.,"basic") *@paramaRealm *optionalstringidentifyingauthrealm. *@paramaPath *optionalstringidentifyingauthpath.emptyforproxyauth. *@paramaUserDomain *optionalstringcontaininguserdomain. *@paramaUserName *optionalstringcontainingusername. *@paramaUserPassword *optionalstringcontaininguserpassword. *@paramaIsPrivate *whethertostoreaprivateorpublicidentity(theyare *storedseparately,forusebyprivatebrowsing) *@paramaPrincipal *theprincipalfromwhichtoderiveinformationaboutwhich *app/mozbrowserisinuseforthisrequest
*/
[must_use] void setAuthIdentity(in ACString aScheme,
in ACString aHost,
in int32_t aPort,
in ACString aAuthType,
in ACString aRealm,
in ACString aPath,
in AString aUserDomain,
in AString aUserName,
in AString aUserPassword,
[optional] in boolean aIsPrivate,
[optional] in nsIPrincipal aPrincipal);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.