2005-08-18 01:00:28 +04:00
|
|
|
/* vim:set ts=4 sw=4 et cindent: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2005-08-18 01:00:28 +04:00
|
|
|
|
|
|
|
#ifndef nsAuthSASL_h__
|
|
|
|
#define nsAuthSASL_h__
|
|
|
|
|
|
|
|
#include "nsIAuthModule.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2012-06-13 07:13:31 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2005-08-18 01:00:28 +04:00
|
|
|
|
2008-04-13 22:31:34 +04:00
|
|
|
/* This class is implemented using the nsAuthGSSAPI class, and the same
|
|
|
|
* thread safety constraints which are documented in nsAuthGSSAPI.h
|
|
|
|
* apply to this class
|
|
|
|
*/
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsAuthSASL final : public nsIAuthModule
|
2005-08-18 01:00:28 +04:00
|
|
|
{
|
|
|
|
public:
|
2013-07-19 06:23:04 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2005-08-18 01:00:28 +04:00
|
|
|
NS_DECL_NSIAUTHMODULE
|
|
|
|
|
|
|
|
nsAuthSASL();
|
|
|
|
|
|
|
|
private:
|
|
|
|
~nsAuthSASL() { Reset(); }
|
|
|
|
|
|
|
|
void Reset();
|
|
|
|
|
|
|
|
nsCOMPtr<nsIAuthModule> mInnerModule;
|
|
|
|
nsString mUsername;
|
2011-09-29 10:19:26 +04:00
|
|
|
bool mSASLReady;
|
2005-08-18 01:00:28 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsAuthSASL_h__ */
|
|
|
|
|