org.openuat.channel.oob
Class ButtonToButtonChannel

java.lang.Object
  extended by org.openuat.channel.oob.ButtonChannel
      extended by org.openuat.channel.oob.ButtonToButtonChannel
All Implemented Interfaces:
OOBChannel, ButtonInputHandler

public class ButtonToButtonChannel
extends ButtonChannel

This channel is an input channel. It implements the button input channel which listens to synchronous button presses on both devices. It therefore only implements the capture method and doesn't support the transmit method (it just does nothing).
This channel only records button presses and ignores button releases.
This channel has two different smallest time units: 400 ms and 300 ms. This means that from one list of captured intervals, two different candidate shared secrets will be generated. The byte[] returned by the capture method contains the concatenation of both candidates.

Version:
1.0
Author:
Lukas Huser

Field Summary
 
Fields inherited from class org.openuat.channel.oob.ButtonChannel
BITS_PER_INTERVAL, captureDisplayText, doRoundDown, impl, inputMode, logger, MESSAGE_LENGTH, messageHandler, minTimeUnit, minTimeUnit2, MODE_PRESS, MODE_PRESS_RELEASE, shortDescription, showFeedback, statisticsLogger, TOTAL_SIGNAL_COUNT, transmitDisplayText, useCarry
 
Fields inherited from interface org.openuat.authentication.OOBChannel
AUDIO_CHANNEL, BUTTON_CHANNEL, VIDEO_CHANNEL
 
Constructor Summary
ButtonToButtonChannel(ButtonChannelImpl impl)
          Creates a new instance of this channel.
 
Method Summary
 void transmit(byte[] message)
          Note: This method is not implemented for this channel.
 
Methods inherited from class org.openuat.channel.oob.ButtonChannel
buttonPressed, buttonReleased, bytesToIntervals, capture, intervalsToBytes, setOOBMessageHandler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ButtonToButtonChannel

public ButtonToButtonChannel(ButtonChannelImpl impl)
Creates a new instance of this channel.

Parameters:
impl - A suitable ButtonChannelImpl instance to handle platform dependent method calls.
Method Detail

transmit

public void transmit(byte[] message)
Note: This method is not implemented for this channel. Don't call it from an application.

Parameters:
message - The data to be sent over this channel.


2005-2009, Rene Mayrhofer.