org.openuat.channel.oob
Class AudioChannel

java.lang.Object
  extended by org.openuat.channel.oob.AudioChannel
All Implemented Interfaces:
OOBChannel

public class AudioChannel
extends java.lang.Object
implements OOBChannel

Implements the audio channel for the Java Standard Edition.

Author:
Iulia Ion

Field Summary
 
Fields inherited from interface org.openuat.authentication.OOBChannel
AUDIO_CHANNEL, BUTTON_CHANNEL, VIDEO_CHANNEL
 
Constructor Summary
AudioChannel()
           
 
Method Summary
 void capture()
           
 void handleAudioDecodedText(byte[] retrieved)
          Starts recording the audio sequence.
 void setOOBMessageHandler(OOBMessageHandler messageHandler)
           
 void transmit(byte[] message)
          Encodes the message in audio format and plays it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioChannel

public AudioChannel()
Method Detail

handleAudioDecodedText

public void handleAudioDecodedText(byte[] retrieved)
Starts recording the audio sequence. Then the MIDlet waits for the user to press the STOP button.


setOOBMessageHandler

public void setOOBMessageHandler(OOBMessageHandler messageHandler)
Specified by:
setOOBMessageHandler in interface OOBChannel

transmit

public void transmit(byte[] message)
Encodes the message in audio format and plays it.

Specified by:
transmit in interface OOBChannel

capture

public void capture()
Specified by:
capture in interface OOBChannel


2005-2009, Rene Mayrhofer.