posted on Monday, August 08, 2011 - 08:50 am
I want to implement the security mechanism in our project(publisher/subscriber level OR at Topic Level).Following is the problem:-
Problem:- I have many application on a single domain and all are publishing and subscriber the topics. I want to put some restriction so that only known application can access that topic. e.g. Apllication1 is publising a "TopicA" and there are 2-3 subscriber of this topic. How can we put a restriction that only few of them can subscribe this topic "TopicA".
Solution(Tried):- While creating participant, We put some value in value field of "User_Data" Qos.
and while creating Topic we put some value in value field of "Topic_Data" Qos. in Publisher application.
For subscriber application, We keep the default setting. that is NULL in ( User_Data.value and Topic_Data.value) field. but still the subscriber application is able to read the topic.
Pls suggest if this is the wrong way to implement it or What should we do.