dOPC Client Toolkit
Close
ua.client.TdOPCUAClient.UserLogin

Specifies the user authentication

property UserLogin: TuaUserLogin;
__property TuaUserLogin UserLogin;

Currently three authentication methods to logon to a server are provided:

Parameter
Description
Anonymous
(0) No user information is available
UserName
(1) A user identified by user name and password.
Certificate
(2) A user identified by an X509v3 Certificate.
IssuedToken
NOT SUPPORTED (3) A user identified by a WS-SecurityToken
Kerberos
NOT SUPPORTED (4)

Attention: If you not logon as a anonymous you must use a certificate! Look also to: ua.client.TdOPCUAClient.SecurityKeypair.

// If the server needs a Username and Password use // following line and enter your authentication data OPCUAClient.UserLogin.SetUser('UserName','Password'); // If you want to login with an certificate please use following code // SetCertificate(PublicKey,PrivatKey,PrivateKeyPassword) //
OPCUAClient.UserLogin.SetCertificate('c:\mydata\MyName.der','c:\mydata\MyName.pem','mypassword');

For a complete secure connect sample program, click here.

Kassl GmbH Copyright © 2024. All rights reserved.