home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / UserSecurityCheck.class (.txt) < prev   
Encoding:
Java Class File  |  1999-04-09  |  1.3 KB  |  34 lines

  1. import java.util.Date;
  2.  
  3. public class UserSecurityCheck {
  4.    JDPJagg jaggSQL;
  5.    JDPSubsystemMgr manager;
  6.    JDPJob thisJob;
  7.  
  8.    public UserSecurityCheck(JDPSubsystemMgr var1, JDPJob var2) {
  9.       this.manager = var1;
  10.       this.thisJob = var2;
  11.       var2.setInstance(this);
  12.       var2.appendJobLog("Job started on " + (new Date()).toString());
  13.  
  14.       while(!var1.shutdownRequested) {
  15.          try {
  16.             Thread.sleep(60000L);
  17.          } catch (Exception var3) {
  18.          }
  19.       }
  20.  
  21.       var2.appendJobLog("Job completed on " + (new Date()).toString());
  22.    }
  23.  
  24.    public boolean validateUser(String var1, String var2) {
  25.       if (var1.equals("Michael") && var2.equals("Michael")) {
  26.          this.thisJob.appendJobLog("Successfully validated: " + var1);
  27.          return true;
  28.       } else {
  29.          this.thisJob.appendJobLog("Validation failed for: " + var1);
  30.          return false;
  31.       }
  32.    }
  33. }
  34.