sbuild  1.6.4
sbuild-auth-null.h
1 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org>
2  *
3  * schroot is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * schroot is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  *********************************************************************/
18 
19 #ifndef SBUILD_AUTH_NULL_H
20 #define SBUILD_AUTH_NULL_H
21 
22 #include <sbuild/sbuild-auth.h>
23 
24 namespace sbuild
25 {
26 
34  class auth_null : public auth
35  {
36  private:
45  auth_null (std::string const& service_name);
46 
47  public:
51  virtual ~auth_null ();
52 
62  static auth::ptr
63  create (std::string const& service_name);
64 
71  virtual environment
72  get_auth_environment () const;
73 
74  virtual void
75  start ();
76 
77  virtual void
78  stop ();
79 
80  virtual void
81  authenticate (status auth_status);
82 
83  virtual bool
84  is_initialised () const;
85 
86  protected:
91  };
92 
93 }
94 
95 #endif /* SBUILD_AUTH_NULL_H */
96 
97 /*
98  * Local Variables:
99  * mode:C++
100  * End:
101  */