/usr/include/thunderbird/nsIHttpAuthenticator.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHttpAuthenticator.idl
*/
#ifndef __gen_nsIHttpAuthenticator_h__
#define __gen_nsIHttpAuthenticator_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIHttpAuthenticableChannel; /* forward declaration */
class nsIHttpAuthenticatorCallback; /* forward declaration */
class nsICancelable; /* forward declaration */
/* starting interface: nsIHttpAuthenticator */
#define NS_IHTTPAUTHENTICATOR_IID_STR "fef7db8a-a4e2-49d1-9685-19ed7e309b7d"
#define NS_IHTTPAUTHENTICATOR_IID \
{0xfef7db8a, 0xa4e2, 0x49d1, \
{ 0x96, 0x85, 0x19, 0xed, 0x7e, 0x30, 0x9b, 0x7d }}
class NS_NO_VTABLE nsIHttpAuthenticator : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHENTICATOR_IID)
/* void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) = 0;
/* void generateCredentialsAsync (in nsIHttpAuthenticableChannel aChannel, in nsIHttpAuthenticatorCallback aCallback, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, in nsISupports aSessionState, in nsISupports aContinuationState, out nsICancelable aCancel); */
NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) = 0;
/* string generateCredentials (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, inout nsISupports aSessionState, inout nsISupports aContinuationState, out unsigned long aFlags); */
NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) = 0;
enum {
USING_INTERNAL_IDENTITY = 1U
};
/* readonly attribute unsigned long authFlags; */
NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) = 0;
enum {
REQUEST_BASED = 1U,
CONNECTION_BASED = 2U,
REUSABLE_CREDENTIALS = 4U,
REUSABLE_CHALLENGE = 8U,
IDENTITY_IGNORED = 1024U,
IDENTITY_INCLUDES_DOMAIN = 2048U,
IDENTITY_ENCRYPTED = 4096U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthenticator, NS_IHTTPAUTHENTICATOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPAUTHENTICATOR \
NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override; \
NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override; \
NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override; \
NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override; \
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIHTTPAUTHENTICATOR \
NS_METHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity); \
NS_METHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel); \
NS_METHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval); \
NS_METHOD GetAuthFlags(uint32_t *aAuthFlags); \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPAUTHENTICATOR(_to) \
NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override { return _to ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override { return _to GenerateCredentialsAsync(aChannel, aCallback, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aCancel); } \
NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override { return _to GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override { return _to GetAuthFlags(aAuthFlags); } \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPAUTHENTICATOR(_to) \
NS_IMETHOD ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChallengeReceived(aChannel, aChallenge, aProxyAuth, aSessionState, aContinuationState, aInvalidatesIdentity); } \
NS_IMETHOD GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCredentialsAsync(aChannel, aCallback, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aCancel); } \
NS_IMETHOD GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateCredentials(aChannel, aChallenge, aProxyAuth, aDomain, aUser, aPassword, aSessionState, aContinuationState, aFlags, _retval); } \
NS_IMETHOD GetAuthFlags(uint32_t *aAuthFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthFlags(aAuthFlags); } \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsHttpAuthenticator : public nsIHttpAuthenticator
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIHTTPAUTHENTICATOR
nsHttpAuthenticator();
private:
~nsHttpAuthenticator();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsHttpAuthenticator, nsIHttpAuthenticator)
nsHttpAuthenticator::nsHttpAuthenticator()
{
/* member initializers and constructor code */
}
nsHttpAuthenticator::~nsHttpAuthenticator()
{
/* destructor code */
}
/* void challengeReceived (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, inout nsISupports aSessionState, inout nsISupports aContinuationState, out boolean aInvalidatesIdentity); */
NS_IMETHODIMP nsHttpAuthenticator::ChallengeReceived(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, nsISupports * *aSessionState, nsISupports * *aContinuationState, bool *aInvalidatesIdentity)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void generateCredentialsAsync (in nsIHttpAuthenticableChannel aChannel, in nsIHttpAuthenticatorCallback aCallback, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, in nsISupports aSessionState, in nsISupports aContinuationState, out nsICancelable aCancel); */
NS_IMETHODIMP nsHttpAuthenticator::GenerateCredentialsAsync(nsIHttpAuthenticableChannel *aChannel, nsIHttpAuthenticatorCallback *aCallback, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports *aSessionState, nsISupports *aContinuationState, nsICancelable * *aCancel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* string generateCredentials (in nsIHttpAuthenticableChannel aChannel, in string aChallenge, in boolean aProxyAuth, in wstring aDomain, in wstring aUser, in wstring aPassword, inout nsISupports aSessionState, inout nsISupports aContinuationState, out unsigned long aFlags); */
NS_IMETHODIMP nsHttpAuthenticator::GenerateCredentials(nsIHttpAuthenticableChannel *aChannel, const char * aChallenge, bool aProxyAuth, const char16_t * aDomain, const char16_t * aUser, const char16_t * aPassword, nsISupports * *aSessionState, nsISupports * *aContinuationState, uint32_t *aFlags, char * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long authFlags; */
NS_IMETHODIMP nsHttpAuthenticator::GetAuthFlags(uint32_t *aAuthFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_HTTP_AUTHENTICATOR_CONTRACTID_PREFIX \
"@mozilla.org/network/http-authenticator;1?scheme="
#endif /* __gen_nsIHttpAuthenticator_h__ */
|