ostore.mac
Class StubHandler

java.lang.Object
  |
  +--ostore.mac.MacHandler
        |
        +--ostore.mac.StubHandler
All Implemented Interfaces:
EventHandlerIF, ProfilableIF

public class StubHandler
extends MacHandler

StubHandler. For testing purposes.


Inner classes inherited from class ostore.mac.MacHandler
MacHandler.GuidNotEstablished, MacHandler.HandshakeFailed, MacHandler.KeyEstablished
 
Field Summary
static boolean DEBUG
           
 
Constructor Summary
StubHandler()
           
 
Method Summary
 boolean authenticate(MACedQS msg, SecureHash guid)
           
 void destroy()
           
 void doMAC(MACedQS msg, SecureHash receiverguid)
          Computes the MAC code for the this message according to the guid
 void establish(SecureHash guid)
          Establish a connection between the sender and recipient of the the message.
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] item)
           
 String idString()
          Id String
 void init(ConfigDataIF config)
           
 SecureHash myGuid()
          My GUID
 
Methods inherited from class ostore.mac.MacHandler
authenticate, doMAC, profileSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Constructor Detail

StubHandler

public StubHandler()
Method Detail

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Overrides:
handleEvent in class MacHandler

handleEvents

public void handleEvents(QueueElementIF[] item)
                  throws EventHandlerException
Overrides:
handleEvents in class MacHandler

idString

public String idString()
Description copied from class: MacHandler
Id String
Overrides:
idString in class MacHandler

myGuid

public SecureHash myGuid()
Description copied from class: MacHandler
My GUID
Overrides:
myGuid in class MacHandler

establish

public void establish(SecureHash guid)
Establish a connection between the sender and recipient of the the message.
Overrides:
establish in class MacHandler
Returns:
true iff we have successfully established a MAC connection between the sender and recipient of the message

authenticate

public boolean authenticate(MACedQS msg,
                            SecureHash guid)
                     throws MacHandler.GuidNotEstablished
Returns:
true iff this message is authentic, i.e. verified by the internal MAC

doMAC

public void doMAC(MACedQS msg,
                  SecureHash receiverguid)
           throws MacHandler.GuidNotEstablished
Computes the MAC code for the this message according to the guid

init

public void init(ConfigDataIF config)
          throws Exception
Overrides:
init in class MacHandler

destroy

public void destroy()
             throws Exception
Overrides:
destroy in class MacHandler