home *** CD-ROM | disk | FTP | other *** search
- import java.util.Date;
-
- public class UserSecurityCheck {
- JDPJagg jaggSQL;
- JDPSubsystemMgr manager;
- JDPJob thisJob;
-
- public UserSecurityCheck(JDPSubsystemMgr var1, JDPJob var2) {
- this.manager = var1;
- this.thisJob = var2;
- var2.setInstance(this);
- var2.appendJobLog("Job started on " + (new Date()).toString());
-
- while(!var1.shutdownRequested) {
- try {
- Thread.sleep(60000L);
- } catch (Exception var3) {
- }
- }
-
- var2.appendJobLog("Job completed on " + (new Date()).toString());
- }
-
- public boolean validateUser(String var1, String var2) {
- if (var1.equals("Michael") && var2.equals("Michael")) {
- this.thisJob.appendJobLog("Successfully validated: " + var1);
- return true;
- } else {
- this.thisJob.appendJobLog("Validation failed for: " + var1);
- return false;
- }
- }
- }
-