commit | author | age
|
6240cd
|
1 |
/* |
51c9e3
|
2 |
* Nutzerverwaltung - User and role management in your browser |
U |
3 |
* Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de |
|
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
|
8 |
* (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 General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program. If not, see http://www.gnu.org/licenses/ |
6240cd
|
17 |
*/ |
51c9e3
|
18 |
|
6240cd
|
19 |
package de.uhilger.um; |
U |
20 |
|
|
21 |
import org.apache.catalina.realm.RealmBase; |
|
22 |
|
|
23 |
/** |
1fc020
|
24 |
* Ein Digester für die Nutzerverwaltung, der die Klasse |
U |
25 |
* RealmBase von Tomcat zum Verschlüsseln nutzt |
6240cd
|
26 |
* |
1fc020
|
27 |
* @author Copyright (c) Ulrich Hilger, http://uhilger.de |
U |
28 |
* @author Published under the terms and conditions of the |
|
29 |
* <a href="http://www.gnu.org/licenses/agpl-3.0" target="_blank">GNU Affero |
|
30 |
* General Public License</a> |
|
31 |
* |
|
32 |
* @version 2, December 27, 2016 |
6240cd
|
33 |
*/ |
U |
34 |
public class TomcatDigester implements Digester { |
|
35 |
|
|
36 |
@Override |
|
37 |
public String digest(String text, String algorithm, String encoding) { |
|
38 |
return RealmBase.Digest(text, algorithm, encoding); |
|
39 |
} |
|
40 |
|
|
41 |
} |