From: Jonathan O. <os...@us...> - 2009-11-06 22:54:24
|
Update of /cvsroot/dlsciences/dlese-tools-project/src/org/dlese/dpc/schemedit/security/auth In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24208/auth Modified Files: UcasAuth.java Log Message: UCAS Auth now uses propFile located with path from ucaslogin config Index: UcasAuth.java =================================================================== RCS file: /cvsroot/dlsciences/dlese-tools-project/src/org/dlese/dpc/schemedit/security/auth/UcasAuth.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UcasAuth.java 5 Nov 2009 20:27:48 -0000 1.1 --- UcasAuth.java 6 Nov 2009 22:54:16 -0000 1.2 *************** *** 16,19 **** --- 16,21 ---- package org.dlese.dpc.schemedit.security.auth; + import org.dlese.dpc.schemedit.SchemEditUtils; + import javax.security.auth.login.*; import javax.security.auth.*; *************** *** 22,26 **** /** ! * adapter class for myjaas auth module * * @author Jonathan Ostwald --- 24,28 ---- /** ! * Adapter class for myjaas auth module that uses UCAS Auth service. * * @author Jonathan Ostwald *************** *** 28,32 **** public class UcasAuth implements Auth { ! private static boolean debug = true; private String username; private String password; --- 30,34 ---- public class UcasAuth implements Auth { ! private static boolean debug = false; private String username; private String password; *************** *** 52,56 **** */ public boolean authenticate() { - prtln("authenticate()"); if (username == null || username.trim().length() == 0) { return false; --- 54,57 ---- *************** *** 68,72 **** return false; } - prtln ("authenticate is returning TRUE"); return true; } --- 69,72 ---- *************** *** 92,100 **** static void prtln(String s) { if (debug) { ! while (s.length() > 0 && s.charAt(0) == '\n') { ! System.out.println(""); ! s = s.substring(1); ! } ! System.out.println("UcasAuth: " + s); } } --- 92,96 ---- static void prtln(String s) { if (debug) { ! SchemEditUtils.prtln(s, "UcasAuth"); } } |