michael@0: /* vim:set ts=4 sw=4 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsAuthSASL_h__ michael@0: #define nsAuthSASL_h__ michael@0: michael@0: #include "nsIAuthModule.h" michael@0: #include "nsString.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: /* This class is implemented using the nsAuthGSSAPI class, and the same michael@0: * thread safety constraints which are documented in nsAuthGSSAPI.h michael@0: * apply to this class michael@0: */ michael@0: michael@0: class nsAuthSASL MOZ_FINAL : public nsIAuthModule michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIAUTHMODULE michael@0: michael@0: nsAuthSASL(); michael@0: michael@0: private: michael@0: ~nsAuthSASL() { Reset(); } michael@0: michael@0: void Reset(); michael@0: michael@0: nsCOMPtr mInnerModule; michael@0: nsString mUsername; michael@0: bool mSASLReady; michael@0: }; michael@0: michael@0: #endif /* nsAuthSASL_h__ */ michael@0: