|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.security.kmc.KMCClient
public class KMCClient
Created on Sep 9, 2005
| Field Summary | |
|---|---|
static byte |
MSG_ERROR
|
static byte |
MSG_SECURITY_TOKEN
|
| Constructor Summary | |
|---|---|
KMCClient(Certificate cer,
PrivateKey priv,
PublicKey rootPub,
String kmcTopic,
String configFilePath)
|
|
KMCClient(Certificate cer,
PrivateKey priv,
PublicKey rootPub,
String kmcTopic,
String configFilePath,
String host,
String port,
String prot)
|
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
init(String configFilePath)
Initializes the KMCClient. |
void |
onEvent(NBEvent nbEvent)
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery |
SecureTopicKeyResponse |
registerTopic(Hashtable pubs,
Hashtable subs,
SignedTopicAdvertisement sta,
Certificate creds,
Calendar validUntil,
String keyGenAlgo,
int keySize,
int timeout)
Registers a topic with the kmc to be a secure topic. |
SecureTopicKeyResponse |
requestTopicKey(String synopsis,
Certificate creds,
TopicRights reqRights,
int timeout)
Request a topic key to publish or subscribe to a topic owned by some other entity |
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 |
| Field Detail |
|---|
public static final byte MSG_SECURITY_TOKEN
public static final byte MSG_ERROR
| Constructor Detail |
|---|
public KMCClient(Certificate cer,
PrivateKey priv,
PublicKey rootPub,
String kmcTopic,
String configFilePath,
String host,
String port,
String prot)
public KMCClient(Certificate cer,
PrivateKey priv,
PublicKey rootPub,
String kmcTopic,
String configFilePath)
| Method Detail |
|---|
public boolean init(String configFilePath)
public void close()
public SecureTopicKeyResponse registerTopic(Hashtable pubs,
Hashtable subs,
SignedTopicAdvertisement sta,
Certificate creds,
Calendar validUntil,
String keyGenAlgo,
int keySize,
int timeout)
pubs - -
A vector of allowed publishers to this topicsubs - -
A vector of allowed subscribers to this topicsta - -
The signed topic advertisement. The signature will be verified
with the public key.creds - -
The Certificate of the entity (owner of the topic)validUntil - -
Validity period of the secure topickeyGenAlgo - -
The Secret key generation algorithm to use (default AES)keySize - -
Size of the key (default 1024)timeout - -
Time for which to wait for the final response from the KMC
public SecureTopicKeyResponse requestTopicKey(String synopsis,
Certificate creds,
TopicRights reqRights,
int timeout)
synopsis - -
The topic synopsis in questioncreds - reqRights - timeout -
public void send(String topicName,
byte[] request)
topicName - -
The topic on which to send the messagerequest - -
The message to be sentpublic void onEvent(NBEvent nbEvent)
NBEventListener
onEvent in interface NBEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||