org.openuat.apps
Class ShakingSinglePCDemonstrator

java.lang.Object
  extended by org.openuat.apps.ShakingSinglePCDemonstrator

public class ShakingSinglePCDemonstrator
extends java.lang.Object

This is a simple demonstrator for the shaking authentication. It shows both protocol variants with a simple GUI.

Version:
1.0
Author:
Rene Mayrhofer

Constructor Summary
ShakingSinglePCDemonstrator(java.lang.String device1, java.lang.String device2, int deviceType)
          The only constructor for the shaking demonstrator.
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShakingSinglePCDemonstrator

public ShakingSinglePCDemonstrator(java.lang.String device1,
                                   java.lang.String device2,
                                   int deviceType)
                            throws java.io.IOException
The only constructor for the shaking demonstrator.

Parameters:
device1 - If deviceType is set to 1, this specifies the log file (or pipe) to read the pulse-width parallel port data. A special case is a syntax "port:" to open an TCP port and listen for incoming log lines on that port. If deviceType is set to 2 or 3, this specifies the name of the first serial port or the first Bluetooth MAC address, respectively, to read from the WiTilt sensor.
device2 - If deviceType is set to 2, this specifies the name of the second serial port or the second Bluetooth MAC address to read from the WiTilt sensor. If deviceType is set to 1, it is simply ignored.
deviceType - The sensor device type to use. If set to 1, pulse-width signals will be sampled from the parallel port. If set to 2, WiTilt devices will be used with a (virtual) serial port, if set to 3, WiTilt devices will be used via JSR82 RFCOMM channels.
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


2005-2009, Rene Mayrhofer.