commit | author | age
|
9ee357
|
1 |
/* |
c7d492
|
2 |
http-auth - Authentication Extensions to jdk.httpserver |
9ee357
|
3 |
Copyright (C) 2021 Ulrich Hilger |
U |
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as |
|
7 |
published by the Free Software Foundation, either version 3 of the |
|
8 |
License, or (at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
package de.uhilger.httpserver.auth.session; |
c7d492
|
19 |
|
9ee357
|
20 |
import java.util.Iterator; |
c7d492
|
21 |
|
9ee357
|
22 |
/** |
U |
23 |
* |
|
24 |
* @author Ulrich Hilger |
|
25 |
* @version 1, 29.05.2021 |
|
26 |
*/ |
|
27 |
public interface SessionManager { |
|
28 |
|
|
29 |
public void add(Session session); |
|
30 |
|
|
31 |
public void remove(String sessionId); |
|
32 |
|
|
33 |
public void modify(String sessionId, Session session); |
|
34 |
|
|
35 |
public Session get(String sessionId); |
|
36 |
|
|
37 |
public Iterator sessions(); |
|
38 |
|
c7d492
|
39 |
} |