Topic RSS11:24, EEST
May 29, 2020
Offline12:07, EEST
April 3, 2012
Offline3:16, EEST
May 29, 2020
OfflineBjarne Boström said
Hi,Please clarify what do you mean?
I do not exactly understand the question as the Session is given as parameter for onValidate and onValidationError methods of UserValidator?
I need to test if the OPC UA Server SDK can be achieved, distinguish Client’s IP
It is known that [public boolean onValidate(Session session, ServerUserIdentity userIdentity)] in MyUserValidator class
Among them, variable session can get the Client’s IP
So I want to get the client’s ip and variable ServerUserIdentity in Class MyNodeManagerListener how can I do ?
thanks!!
9:13, EEST
April 3, 2012
OfflineYou can get the Session from the ServiceContext (via getSession()), which is given as the first parameter in many listener interfaces. This is shown e.g. in the MyNodeManagerListener sample with the checkUserAccess method which is called from the interface implementing methods. And then you can get the ServerUserIdentity from the Session.getUserIdentity().
8:36, EEST
May 29, 2020
OfflineBjarne Boström said
You can get the Session from the ServiceContext (via getSession()), which is given as the first parameter in many listener interfaces. This is shown e.g. in the MyNodeManagerListener sample with the checkUserAccess method which is called from the interface implementing methods. And then you can get the ServerUserIdentity from the Session.getUserIdentity().
Hi Bjarne Boström
thanks for your help
I did it.
1 Guest(s)

Log In
Register