1 module org.eclipse.swt.internal.mozilla.nsIAuthInformation;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.nsISupports;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.Common;
8 import org.eclipse.swt.internal.mozilla.nsStringAPI;
9 
10 const char[] NS_IAUTHINFORMATION_IID_STR =  "0d73639c-2a92-4518-9f92-28f71fea5f20";
11 
12 const nsIID NS_IAUTHINFORMATION_IID =
13    {0x0d73639c, 0x2a92, 0x4518, 
14     [ 0x9f, 0x92, 0x28, 0xf7, 0x1f, 0xea, 0x5f, 0x20 ] };
15 
16 interface nsIAuthInformation : nsISupports {
17 
18   static const char[] IID_STR = NS_IAUTHINFORMATION_IID_STR;
19   static const nsIID IID = NS_IAUTHINFORMATION_IID;
20 
21   enum { AUTH_HOST = 1U }
22   enum { AUTH_PROXY = 2U }
23   enum { NEED_DOMAIN = 4U }
24   enum { ONLY_PASSWORD = 8U }
25 
26 extern(System):
27   nsresult GetFlags(PRUint32 *aFlags);
28   nsresult GetRealm(nsAString * aRealm);
29   nsresult GetAuthenticationScheme(nsACString * aAuthenticationScheme);
30   nsresult GetUsername(nsAString * aUsername);
31   nsresult SetUsername(nsAString * aUsername);
32   nsresult GetPassword(nsAString * aPassword);
33   nsresult SetPassword(nsAString * aPassword);
34   nsresult GetDomain(nsAString * aDomain);
35   nsresult SetDomain(nsAString * aDomain);
36 
37 };