Package com.jbidwatcher.util.db

Examples of com.jbidwatcher.util.db.Device


    JConfig.log().logMessage("Returning: " + json);
    return (new StringBuffer(json));
  }

  public StringBuffer register(String device) {
    Device d = Device.findByDevice(device);
    if(d == null) {
      d = new Device(device);
    } else {
      d.refreshKey();
    }

    JConfig.log().logMessage("Registered device: " + device);

    MQFactory.getConcrete("Swing").enqueue("SECURITY " + d.getString("security_key"));
    return new StringBuffer("Enter the security digits");
  }
View Full Code Here


    MQFactory.getConcrete("Swing").enqueue("SECURITY " + d.getString("security_key"));
    return new StringBuffer("Enter the security digits");
  }

  public boolean deviceVerify(String device, String code) {
    Device remoteDevice = Device.findByDevice(device);
    return remoteDevice != null && code.equals(remoteDevice.getString("security_key"));
  }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.util.db.Device

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.