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.
Field Summary |
static boolean |
DEBUG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
StubHandler
public StubHandler()
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