Removed native components (now in own repositories)
[guacamole.git] / web / guacamole-common / src / main / java / net / sourceforge / guacamole / net / authentication / NullGuacamoleSessionProvider.java
1
2 package net.sourceforge.guacamole.net.authentication;
3
4 import javax.servlet.http.HttpSession;
5 import net.sourceforge.guacamole.GuacamoleException;
6 import net.sourceforge.guacamole.net.GuacamoleSession;
7
8 /*
9  *  Guacamole - Clientless Remote Desktop
10  *  Copyright (C) 2010  Michael Jumper
11  *
12  *  This program is free software: you can redistribute it and/or modify
13  *  it under the terms of the GNU Affero General Public License as published by
14  *  the Free Software Foundation, either version 3 of the License, or
15  *  (at your option) any later version.
16  *
17  *  This program is distributed in the hope that it will be useful,
18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *  GNU Affero General Public License for more details.
21  *
22  *  You should have received a copy of the GNU Affero General Public License
23  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
24  */
25
26 public class NullGuacamoleSessionProvider implements GuacamoleSessionProvider {
27
28     public GuacamoleSession createSession(HttpSession session) throws GuacamoleException {
29         throw new GuacamoleException("Null provider will not create sessions");
30     }
31
32 }