diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-02-06 12:27:19 +0100 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2019-02-20 09:47:43 +0000 |
commit | 87147170dd248db239a0b487fe69219ad8ad78da (patch) | |
tree | 49d9efd2777c7b852eb4eab2b8e8c4d1aab8ada6 /examples | |
parent | 517b711845efb0fa18e959beb5476a2598ffdd36 (diff) |
Add API for querying security features of a backend
Change-Id: Idcc0ad4ce28b486cb176d23dd41568d676940593
Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/opcua/opcuaviewer/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opcua/opcuaviewer/mainwindow.cpp b/examples/opcua/opcuaviewer/mainwindow.cpp index 3510bb3..ac367fa 100644 --- a/examples/opcua/opcuaviewer/mainwindow.cpp +++ b/examples/opcua/opcuaviewer/mainwindow.cpp @@ -220,7 +220,7 @@ void MainWindow::createClient() mOpcUaClient->setIdentity(m_identity); mOpcUaClient->setPkiConfiguration(m_pkiConfig); - if (mOpcUaPlugin->currentText() == QStringLiteral("uacpp")) { + if (mOpcUaClient->supportedUserTokenTypes().contains(QOpcUaUserTokenPolicy::TokenType::Certificate)) { QOpcUaAuthenticationInformation authInfo; authInfo.setCertificateAuthentication(); mOpcUaClient->setAuthenticationInformation(authInfo); |