AuthenticationInformation QML Type
OPC UA の認証情報。詳細...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
このタイプは QtOpcUa 6.9 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
メソッド
- void setAnonymousAuthentication()
- void setUsernameAuthentication(string username, string password)
詳細説明
このクラスは、サーバーへのログインを実行するために必要な情報を保持します。
var authInfo = connection.authenticationInformation;
authInfo.setUsernameAuthentication("user1", "password");
connection.authenticationInformation = authInfo;現在サポートされている認証方法は以下の通りです:
- 匿名
- ユーザー名
- 証明書
setAnonymousAuthentication() およびsetUsernameAuthentication()も参照してください 。
メソッドのドキュメント
void setAnonymousAuthentication()
認証方法を「匿名」に設定します。
void setUsernameAuthentication(string username, string password)
指定された `username ` および `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.