Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
password encryptions in UserIdentity
September 28, 2015
7:09, EEST
Avatar
jijomonac
Member
Members
Forum Posts: 18
Member Since:
September 24, 2015
sp_UserOfflineSmall Offline

We are using username and password for connect to OPC Server, with

client.setUserIdentity(new UserIdentity(“my_name”, “my_password”));

Is there any password encryption methods by default, else how we can encrypt our password ?

September 28, 2015
8:06, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1029
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The server endpoint defines the encryption algorithm to use for passwords (UserTokenPolicy) and the client should use the defined one. The SampleConsoleServer, for example initialises the user name policy with

server.addUserTokenPolicy(UserTokenPolicy.SECURE_USERNAME_PASSWORD);
September 28, 2015
9:42, EEST
Avatar
jijomonac
Member
Members
Forum Posts: 18
Member Since:
September 24, 2015
sp_UserOfflineSmall Offline

Thanks

How we can define the UserTokenPolicy at client side, Now we are using

client.setUserIdentity(new UserIdentity(username, password));

September 28, 2015
12:02, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1029
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You define the policy by selecting the UserIdentity type: if you use the name and password, the respective policy will be selected. I should have shown all the policies that are defined in SampleConsoleServer:

server.addUserTokenPolicy(UserTokenPolicy.ANONYMOUS);
server.addUserTokenPolicy(UserTokenPolicy.SECURE_USERNAME_PASSWORD);
server.addUserTokenPolicy(UserTokenPolicy.SECURE_CERTIFICATE);

It is true, though, that should the server define several policies per UserIdentity type, then we don’t have a way to select the used policy at the moment.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 23
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6521
Newest Members:
wilfredoforeman, ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1047, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1