gOPCUAConnector.gSecurity Property

Top  Previous  Next

PROPERTY                                               DATA TYPE                       NOTE

gSecurity.SecurityMode

gSecurityMode

None, Sign and SignAndEncrypt.

gSecurity.SecurityPolicy

gSecurityPolicy

None, Basic128RSA15, Basic256

gSecurity.UserAuthentication.UserAuthenticationType

gUserAuthenticationType

Anonymous, UsernameAndPassword

gSecurity.UserAuthentication.Username

String


gSecurity.UserAuthentication.Password

String





 

SecurityMode and SecurityPolicy defines Secure Channel and all about data flow between client and server.

User Authentication defines how client will access to server.

 

 

C# code example

gOPCUAConnector.gSecurity.SecurityMode = gSecurityMode.Sign;

gOPCUAConnector.gSecurity.SecurityPolicy = gSecurityPolicy.Basic128RSA15;

gOPCUAConnector.gSecurity.UserAuthentication.UserAuthenticationType = gUserAuthenticationType.UsernameAndPassword;

gOPCUAConnector.gSecurity.UserAuthentication.Username = "myUserName";

gOPCUAConnector.gSecurity.UserAuthentication.Password = "12345";

 

 

Property editor

ua security editor