[Dirconsole-cvs] dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi StringComparator.java,1.1.1
Brought to you by:
bavodr
|
From: Bavo De R. <ba...@us...> - 2004-07-24 14:12:47
|
Update of /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1783/DirConsoleJar/src/java/dirconsole/editor/spi Modified Files: StringComparator.java GenericAttributeEditor.java UnixCrypt.java PasswordEditor.java LdapStringModel.java EditorUtils.java Log Message: Added GPL preamble to all .java files Index: UnixCrypt.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/UnixCrypt.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** UnixCrypt.java 28 Jun 2004 19:56:34 -0000 1.1.1.1 --- UnixCrypt.java 24 Jul 2004 14:12:07 -0000 1.2 *************** *** 1,1663 **** package dirconsole.editor.spi; public class UnixCrypt extends Object { ! private UnixCrypt() ! { ! } ! private static final char[] SALT_CHARS = ! ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./" [...2266 lines suppressed...] ! * </P> ! * ! * @param encryptedPassword ! * The <I>encryptedPassword </I>. The first two characters are ! * assumed to be the salt. This string would be the same as one ! * found in a Unix <U>/etc/passwd </U> file. ! * @param enteredPassword ! * The password as entered by the user (or otherwise aquired). ! * @return <B>true </B> if the password should be considered correct. ! */ ! public static final boolean matches(String encryptedPassword, ! String enteredPassword) ! { ! String salt = encryptedPassword.substring(0, 3); ! String newCrypt = crypt(salt, enteredPassword); ! return newCrypt.equals(encryptedPassword); ! } ! } \ No newline at end of file Index: EditorUtils.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/EditorUtils.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EditorUtils.java 28 Jun 2004 19:56:33 -0000 1.1.1.1 --- EditorUtils.java 24 Jul 2004 14:12:07 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + * Copyright 2001 - 2004, Bavo De Ridder + * + * This file is part of Directory Console. + * + * Directory Console is free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * Directory Console is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Directory Console; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston + * + * http://www.gnu.org/licenses/gpl.html + */ + package dirconsole.editor.spi; Index: GenericAttributeEditor.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/GenericAttributeEditor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenericAttributeEditor.java 12 Jul 2004 16:46:17 -0000 1.2 --- GenericAttributeEditor.java 24 Jul 2004 14:12:07 -0000 1.3 *************** *** 1,2 **** --- 1,24 ---- + /* + * Copyright 2001 - 2004, Bavo De Ridder + * + * This file is part of Directory Console. + * + * Directory Console is free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * Directory Console is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Directory Console; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston + * + * http://www.gnu.org/licenses/gpl.html + */ + package dirconsole.editor.spi; Index: PasswordEditor.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/PasswordEditor.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PasswordEditor.java 28 Jun 2004 19:56:33 -0000 1.1.1.1 --- PasswordEditor.java 24 Jul 2004 14:12:07 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + * Copyright 2001 - 2004, Bavo De Ridder + * + * This file is part of Directory Console. + * + * Directory Console is free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * Directory Console is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Directory Console; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston + * + * http://www.gnu.org/licenses/gpl.html + */ + package dirconsole.editor.spi; Index: LdapStringModel.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/LdapStringModel.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** LdapStringModel.java 28 Jun 2004 19:56:34 -0000 1.1.1.1 --- LdapStringModel.java 24 Jul 2004 14:12:07 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + * Copyright 2001 - 2004, Bavo De Ridder + * + * This file is part of Directory Console. + * + * Directory Console is free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * Directory Console is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Directory Console; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston + * + * http://www.gnu.org/licenses/gpl.html + */ + package dirconsole.editor.spi; Index: StringComparator.java =================================================================== RCS file: /cvsroot/dirconsole/dirconsole/DirConsoleJar/src/java/dirconsole/editor/spi/StringComparator.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StringComparator.java 28 Jun 2004 19:56:33 -0000 1.1.1.1 --- StringComparator.java 24 Jul 2004 14:12:07 -0000 1.2 *************** *** 1,2 **** --- 1,24 ---- + /* + * Copyright 2001 - 2004, Bavo De Ridder + * + * This file is part of Directory Console. + * + * Directory Console is free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * Directory Console is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Directory Console; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston + * + * http://www.gnu.org/licenses/gpl.html + */ + package dirconsole.editor.spi; |