Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions
nsJVMAuthTools Class Reference

#include <nsJVMAuthTools.h>

Inheritance diagram for nsJVMAuthTools:
Inheritance graph
[legend]
Collaboration diagram for nsJVMAuthTools:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsJVMAuthTools (nsISupports *outer)
virtual ~nsJVMAuthTools (void)
nsIAuthenticationInfo GetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm)
 Export AuthenticationInfo interface to JPI.
void SetAuthenticationInfo (in string protocol, in string host, in PRInt32 port, in string scheme, in string realm, in string username, in string password)
 Import username/password pair from JPI.

Static Public Member Functions

NS_DECL_AGGREGATED static
NS_DECL_NSIJVMAUTHTOOLS
NS_METHOD 
Create (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)

Detailed Description

Definition at line 59 of file nsJVMAuthTools.h.


Constructor & Destructor Documentation

nsJVMAuthTools::nsJVMAuthTools ( nsISupports *  outer)

Definition at line 88 of file nsJVMAuthTools.cpp.

{
    NS_INIT_AGGREGATED(outer);
}

Here is the caller graph for this function:

Definition at line 93 of file nsJVMAuthTools.cpp.

{
}

Member Function Documentation

NS_METHOD nsJVMAuthTools::Create ( nsISupports *  outer,
const nsIID aIID,
void **  aInstancePtr 
) [static]

Definition at line 98 of file nsJVMAuthTools.cpp.

{
    if (!aInstancePtr)
        return NS_ERROR_INVALID_POINTER;
    *aInstancePtr = nsnull;

    if (outer && !aIID.Equals(kISupportsIID))
        return NS_ERROR_INVALID_ARG; 

    nsJVMAuthTools* authtools = new nsJVMAuthTools(outer);
    if (authtools == nsnull)
        return NS_ERROR_OUT_OF_MEMORY;

    nsresult rv = authtools->AggregatedQueryInterface(aIID, aInstancePtr);
    if(NS_FAILED(rv))
        delete authtools;

    return rv;
}

Here is the call graph for this function:

nsIAuthenticationInfo nsIJVMAuthTools::GetAuthenticationInfo ( in string  protocol,
in string  host,
in PRInt32  port,
in string  scheme,
in string  realm 
) [inherited]

Export AuthenticationInfo interface to JPI.

Parameters:
protocolthe protocol that support (http/https)
hosthost name
portport number
schemescheme
realmrealm
nsIAuthenticationInfothe AuthenticationInfo interface that export
Returns:
NS_OK if success, other if fail
void nsIJVMAuthTools::SetAuthenticationInfo ( in string  protocol,
in string  host,
in PRInt32  port,
in string  scheme,
in string  realm,
in string  username,
in string  password 
) [inherited]

Import username/password pair from JPI.

Parameters:
protocolthe protocol that support (http/https)
hosthost name
portport number
schemescheme
realmrealm
usernameuser name
passwordpassword
Returns:
NS_OK if success, other if fail

The documentation for this class was generated from the following files: