WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the
XUL hub at the
Mozilla Developer Center.
@mozilla.org/network/http-authenticator;1?scheme=basic
This component implements the following interfaces:
Constants
| A request based authentication scheme only authenticates an individual
request (or a set of requests under the same authentication domain as
defined by RFC 2617). BASIC and DIGEST are request based authentication
schemes.
|
| PRUint32 |
nsIHttpAuthenticator.REQUEST_BASED |
= 1 |
| A connection based authentication scheme authenticates an individual
connection. Multiple requests may be issued over the connection without
repeating the authentication steps. Connection based authentication
schemes can associate state with the connection being authenticated via
the aContinuationState parameter (see generateCredentials).
|
| PRUint32 |
nsIHttpAuthenticator.CONNECTION_BASED |
= 2 |
| The credentials returned from generateCredentials may be reused with any
other URLs within "the protection space" as defined by RFC 2617 section
1.2. If this flag is not set, then generateCredentials must be called
for each request within the protection space. REUSABLE_CREDENTIALS
implies REUSABLE_CHALLENGE.
|
| PRUint32 |
nsIHttpAuthenticator.REUSABLE_CREDENTIALS |
= 4 |
| A challenge may be reused to later generate credentials in anticipation
of a duplicate server challenge for URLs within "the protection space"
as defined by RFC 2617 section 1.2.
|
| PRUint32 |
nsIHttpAuthenticator.REUSABLE_CHALLENGE |
= 8 |
| This flag indicates that the identity of the user is not required by
this authentication scheme.
|
| PRUint32 |
nsIHttpAuthenticator.IDENTITY_IGNORED |
= 1024 |
| This flag indicates that the identity of the user includes a domain
attribute that the user must supply.
|
| PRUint32 |
nsIHttpAuthenticator.IDENTITY_INCLUDES_DOMAIN |
= 2048 |
| This flag indicates that the identity will be sent encrypted. It does
not make sense to combine this flag with IDENTITY_IGNORED.
|
| PRUint32 |
nsIHttpAuthenticator.IDENTITY_ENCRYPTED |
= 4096 |
Properties
readonly PRUint32 nsIHttpAuthenticator.authFlags
Methods
| Interface | Method |
| nsIHttpAuthenticator |
void challengeReceived ( nsIHttpChannel channel , char* challenge , PRBool proxyAuth , inout nsISupports sessionState , inout nsISupports continuationState , out PRBool invalidatesIdentity )
|
| nsIHttpAuthenticator |
char* generateCredentials ( nsIHttpChannel channel , char* challenge , PRBool proxyAuth , PRUnichar* domain , PRUnichar* user , PRUnichar* password , inout nsISupports sessionState , inout nsISupports continuationState )
|
Reference documentation is generated from Mozilla's source.