cgl.narada.service.security.kmc.messages
Class KMCMessage

java.lang.Object
  extended by cgl.narada.service.security.kmc.messages.KMCMessage
All Implemented Interfaces:
Serializable

public class KMCMessage
extends Object
implements Serializable

Encapsulates various messages sent to the KMC
Created on Sep 8, 2005

See Also:
Serialized Form

Field Summary
static int KmcMSG_SECURE_TOPIC_KEY_CREATE_MODIFY
          The payload is asecure key creation request.
static int KmcMSG_SECURE_TOPIC_KEY_REQUEST
          The payload is secure topic key request.
 
Constructor Summary
KMCMessage(int type, byte[] data)
           
 
Method Summary
static KMCMessage createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a KMCMessage object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 int getMessageType()
           
 byte[] getPayload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KmcMSG_SECURE_TOPIC_KEY_CREATE_MODIFY

public static final int KmcMSG_SECURE_TOPIC_KEY_CREATE_MODIFY
The payload is asecure key creation request. To be used by Topic owner

See Also:
Constant Field Values

KmcMSG_SECURE_TOPIC_KEY_REQUEST

public static final int KmcMSG_SECURE_TOPIC_KEY_REQUEST
The payload is secure topic key request. To be used by one of authorized publisher/ subscriber

See Also:
Constant Field Values
Constructor Detail

KMCMessage

public KMCMessage(int type,
                  byte[] data)
Method Detail

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static KMCMessage createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a KMCMessage object

Parameters:
objectBytes -
Returns:
KMCMessage if successful, null if error occurs

getMessageType

public int getMessageType()
Returns:
Returns the messageType.

getPayload

public byte[] getPayload()
Returns:
Returns the payload.


For comments and suggestions please send e-mail to The NaradaBrokering Project