AuthenticationInformation QML Type
As informações de autenticação do OPC UA. Mais...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
Este tipo está obsoleto desde o QtOpcUa 6.9. Recomendamos enfaticamente que não seja utilizado em código novo.
Métodos
- void setAnonymousAuthentication()
- void setUsernameAuthentication(string username, string password)
Descrição detalhada
Esta classe contém as informações necessárias para realizar um login em um servidor.
var authInfo = connection.authenticationInformation;
authInfo.setUsernameAuthentication("user1", "password");
connection.authenticationInformation = authInfo;Os métodos de autenticação atualmente suportados são:
- Anônimo
- Nome de usuário
- Certificado
Veja também setAnonymousAuthentication() e setUsernameAuthentication().
Documentação do método
void setAnonymousAuthentication()
Define o método de autenticação como anônimo.
void setUsernameAuthentication(string username, string password)
Define o método de autenticação como “username”, utilizando os endereços username e password fornecidos.
© 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.