nsAuthSASL.h (829B)
1 /* vim:set ts=4 sw=2 et cindent: */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef nsAuthSASL_h__ 7 #define nsAuthSASL_h__ 8 9 #include "nsIAuthModule.h" 10 #include "nsString.h" 11 #include "nsCOMPtr.h" 12 13 /* This class is implemented using the nsAuthGSSAPI class, and the same 14 * thread safety constraints which are documented in nsAuthGSSAPI.h 15 * apply to this class 16 */ 17 18 class nsAuthSASL final : public nsIAuthModule { 19 public: 20 NS_DECL_THREADSAFE_ISUPPORTS 21 NS_DECL_NSIAUTHMODULE 22 23 nsAuthSASL(); 24 25 private: 26 ~nsAuthSASL() { Reset(); } 27 28 void Reset(); 29 30 nsCOMPtr<nsIAuthModule> mInnerModule; 31 nsString mUsername; 32 bool mSASLReady; 33 }; 34 35 #endif /* nsAuthSASL_h__ */