1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/extensions/auth/nsAuthSASL.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +/* vim:set ts=4 sw=4 et cindent: */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsAuthSASL_h__ 1.10 +#define nsAuthSASL_h__ 1.11 + 1.12 +#include "nsIAuthModule.h" 1.13 +#include "nsString.h" 1.14 +#include "nsCOMPtr.h" 1.15 +#include "mozilla/Attributes.h" 1.16 + 1.17 +/* This class is implemented using the nsAuthGSSAPI class, and the same 1.18 + * thread safety constraints which are documented in nsAuthGSSAPI.h 1.19 + * apply to this class 1.20 + */ 1.21 + 1.22 +class nsAuthSASL MOZ_FINAL : public nsIAuthModule 1.23 +{ 1.24 +public: 1.25 + NS_DECL_THREADSAFE_ISUPPORTS 1.26 + NS_DECL_NSIAUTHMODULE 1.27 + 1.28 + nsAuthSASL(); 1.29 + 1.30 +private: 1.31 + ~nsAuthSASL() { Reset(); } 1.32 + 1.33 + void Reset(); 1.34 + 1.35 + nsCOMPtr<nsIAuthModule> mInnerModule; 1.36 + nsString mUsername; 1.37 + bool mSASLReady; 1.38 +}; 1.39 + 1.40 +#endif /* nsAuthSASL_h__ */ 1.41 +