commit | author | age
|
6240cd
|
1 |
/* |
1fc020
|
2 |
Nutzerverwaltung - A Generic User Manager |
U |
3 |
Copyright (c) 2016 Ulrich Hilger |
|
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 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 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 <http://www.gnu.org/licenses/>. |
6240cd
|
17 |
*/ |
U |
18 |
package de.uhilger.um; |
|
19 |
|
|
20 |
import org.apache.catalina.realm.RealmBase; |
|
21 |
|
|
22 |
/** |
1fc020
|
23 |
* Ein Digester für die Nutzerverwaltung, der die Klasse |
U |
24 |
* RealmBase von Tomcat zum Verschlüsseln nutzt |
6240cd
|
25 |
* |
1fc020
|
26 |
* @author Copyright (c) Ulrich Hilger, http://uhilger.de |
U |
27 |
* @author Published under the terms and conditions of the |
|
28 |
* <a href="http://www.gnu.org/licenses/agpl-3.0" target="_blank">GNU Affero |
|
29 |
* General Public License</a> |
|
30 |
* |
|
31 |
* @version 2, December 27, 2016 |
6240cd
|
32 |
*/ |
U |
33 |
public class TomcatDigester implements Digester { |
|
34 |
|
|
35 |
@Override |
|
36 |
public String digest(String text, String algorithm, String encoding) { |
|
37 |
return RealmBase.Digest(text, algorithm, encoding); |
|
38 |
} |
|
39 |
|
|
40 |
} |