01: /* CVS ID: $Id: CryptedStringConfigParameter.java,v 1.1.1.1 2002/10/02 18:41:45 wastl Exp $ */
02: package net.wastl.webmail.config;
03:
04: import net.wastl.webmail.misc.Helper;
05:
06: /*
07: * CryptedStringConfigParameter.java
08: *
09: * Created: Mon Sep 13 12:49:42 1999
10: *
11: * Copyright (C) 2000 Sebastian Schaffert
12: *
13: * This program is free software; you can redistribute it and/or
14: * modify it under the terms of the GNU General Public License
15: * as published by the Free Software Foundation; either version 2
16: * of the License, or (at your option) any later version.
17: *
18: * This program is distributed in the hope that it will be useful,
19: * but WITHOUT ANY WARRANTY; without even the implied warranty of
20: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: * GNU General Public License for more details.
22: *
23: * You should have received a copy of the GNU General Public License
24: * along with this program; if not, write to the Free Software
25: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26: */
27: /**
28: *
29: * @author Sebastian Schaffert
30: * @version
31: */
32:
33: public class CryptedStringConfigParameter extends StringConfigParameter {
34:
35: public CryptedStringConfigParameter(String name, String def,
36: String desc) {
37: super (name, Helper.crypt("AA", def), desc);
38: }
39:
40: public String filter(String s) {
41: return Helper.crypt("AA", s);
42: }
43:
44: public String getType() {
45: return "crypted";
46: }
47: } // CryptedStringConfigParameter
|