org.openuat.util
Interface ifPair

All Superinterfaces:
ifListener, java.lang.Runnable
All Known Implementing Classes:
Pair

public interface ifPair
extends ifListener

Author:
Christoph Egger, Lukas Wallentin Extends Runnable interface, as implementations MUST run as threads

Method Summary
 byte[] getKey(java.lang.String _bob)
          Returns a single key or null if there is no key with that pair
 java.lang.String getLog()
          returns a string with debugging information
 java.util.Hashtable listKeys()
          Returns Hashtable with keys
 void resetLog()
          resets the Log
 void setKeyPair(java.lang.String _remote, byte[] _key)
          Set Key function
 void setName(java.lang.String _name)
          sets The name of the current device, must be done at the beginning
 
Methods inherited from interface org.openuat.util.ifListener
handleStringEvent
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

listKeys

java.util.Hashtable listKeys()
Returns Hashtable with keys


setName

void setName(java.lang.String _name)
sets The name of the current device, must be done at the beginning

Parameters:
_name - Name of the current device

getKey

byte[] getKey(java.lang.String _bob)
Returns a single key or null if there is no key with that pair

Parameters:
_bob - Name of the pair device

setKeyPair

void setKeyPair(java.lang.String _remote,
                byte[] _key)
Set Key function

Parameters:
_remote - Name of the pair device
_key - shared key between the current and the pair device

getLog

java.lang.String getLog()
returns a string with debugging information

Returns:
String with debugging infomation

resetLog

void resetLog()
resets the Log



2005-2009, Rene Mayrhofer.