このページでは

AuthenticationInformation QML Type

OPC UAの認証情報。詳細...

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

この型はQtOpcUa 6.9から非推奨となりました。新しいコードでは使用しないことを強くお勧めします。

メソッド

詳細説明

このクラスは、サーバへのログインに必要な情報を保持します。

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

現在サポートされている認証方式は以下のとおりです:

  • 匿名
  • ユーザ名
  • 証明書

setAnonymousAuthentication() およびsetUsernameAuthentication()も参照 ください。

メソッドのドキュメント

void setAnonymousAuthentication()

認証方法を anonymous に設定する。

void setUsernameAuthentication(string username, string password)

与えられたusernamepassword を使って、認証方法をユーザー名に設定する。

© 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.