cgl.narada.service.security.kmc
Class KMCService

java.lang.Object
  extended by cgl.narada.service.security.kmc.KMCService
All Implemented Interfaces:
NBEventListener

public class KMCService
extends Object
implements NBEventListener

KMC Service is used to store and issue security tokens for secure topics.
Currently the validity of the KMC service topic is set to Dec 31, 2005 23:59:59.
Note: You will need to change and recompile KMCService after this time.
Created on Sep 8, 2005


Constructor Summary
KMCService(int kmcID, String keystore, String pathToServiceConfig, String h, String p, String prot)
          Creates a Key Management Center Service, initializes the service.
 
Method Summary
static void main(String[] args)
          Starts the Key Management Center Service.
 void onEvent(NBEvent nbEvent)
          Process Requests sent to the KMC Service
 void send(String topicName, byte[] request)
          Send the specified message on specified topic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMCService

public KMCService(int kmcID,
                  String keystore,
                  String pathToServiceConfig,
                  String h,
                  String p,
                  String prot)
Creates a Key Management Center Service, initializes the service. Initialization entails creating a topic using Topic Discovery and subscribing to it. Assumes presence of at least 1 TDN connected to the broker network.

Method Detail

onEvent

public void onEvent(NBEvent nbEvent)
Process Requests sent to the KMC Service

Specified by:
onEvent in interface NBEventListener

send

public void send(String topicName,
                 byte[] request)
Send the specified message on specified topic

Parameters:
topicName - - The topic on which to send the message
request - - The message to be sent

main

public static void main(String[] args)
Starts the Key Management Center Service. Use -help for usage
TODO: Add parsing of command line parameters to provide more fine grained control



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