Auf dieser Seite

AuthenticationInformation QML Type

Die OPC-UA-Authentifizierungsdaten. Mehr...

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

Dieser Typ ist seit QtOpcUa 6.9 veraltet. Wir raten dringend davon ab, ihn in neuem Code zu verwenden.

Methoden

Ausführliche Beschreibung

Diese Klasse enthält die Informationen, die für die Anmeldung an einem Server erforderlich sind.

var authInfo = connection.authenticationInformation;
authInfo.setUsernameAuthentication("user1", "password");
connection.authenticationInformation = authInfo;

Derzeit werden folgende Authentifizierungsmethoden unterstützt:

  • Anonym
  • Benutzername
  • Zertifikat

Siehe auch setAnonymousAuthentication() und setUsernameAuthentication().

Dokumentation zu den Methoden

void setAnonymousAuthentication()

Legt die Authentifizierungsmethode auf „anonym“ fest.

void setUsernameAuthentication(string username, string password)

Legt die Authentifizierungsmethode auf „Benutzername“ fest und verwendet dabei die angegebenen Werte „ username “ und „ password “.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.