2007-03-22 10:30:00 -07:00
|
|
|
/* vim:set ts=4 sw=4 et cindent: */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsAuthSASL_h__
|
|
|
|
#define nsAuthSASL_h__
|
|
|
|
|
|
|
|
#include "nsIAuthModule.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2012-06-12 20:13:31 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-04-13 11:31:34 -07: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
|
|
|
|
*/
|
|
|
|
|
2012-06-12 20:13:31 -07:00
|
|
|
class nsAuthSASL MOZ_FINAL : public nsIAuthModule
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-07-18 19:23:04 -07:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_DECL_NSIAUTHMODULE
|
|
|
|
|
|
|
|
nsAuthSASL();
|
|
|
|
|
|
|
|
private:
|
|
|
|
~nsAuthSASL() { Reset(); }
|
|
|
|
|
|
|
|
void Reset();
|
|
|
|
|
|
|
|
nsCOMPtr<nsIAuthModule> mInnerModule;
|
|
|
|
nsString mUsername;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mSASLReady;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsAuthSASL_h__ */
|
|
|
|
|