QOpcUaUserTokenPolicy Class

OPC UAUserTokenPolicy.もっと見る...

ヘッダ #include <QOpcUaUserTokenPolicy>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

パブリックな型

enum TokenType { Anonymous, Username, Certificate, IssuedToken }

パブリック関数

QOpcUaUserTokenPolicy()
QOpcUaUserTokenPolicy(const QOpcUaUserTokenPolicy &rhs)
QString issuedTokenType() const
QString issuerEndpointUrl() const
QString policyId() const
QString securityPolicy() const
void setIssuedTokenType(const QString &issuedTokenType)
void setIssuerEndpointUrl(const QString &issuerEndpointUrl)
void setPolicyId(const QString &policyId)
void setSecurityPolicy(const QString &securityPolicy)
void setTokenType(QOpcUaUserTokenPolicy::TokenType tokenType)
QOpcUaUserTokenPolicy::TokenType tokenType() const
QOpcUaUserTokenPolicy &operator=(const QOpcUaUserTokenPolicy &rhs)
bool operator==(const QOpcUaUserTokenPolicy &rhs) const

詳細説明

ユーザートークンポリシーには、サーバによって受理されたユーザートークンに関する情報が含まれます。

メンバ型の説明

enum QOpcUaUserTokenPolicy::TokenType

定数説明
QOpcUaUserTokenPolicy::Anonymous0トークンは必要ありません。
QOpcUaUserTokenPolicy::Username1ユーザ名とパスワードが必要です。
QOpcUaUserTokenPolicy::Certificate2クライアント証明書が必要です。
QOpcUaUserTokenPolicy::IssuedToken3Web Services Security (WS-Security) で定義されたトークン。

メンバー関数ドキュメント

QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy()

デフォルトは、パラメータを設定せずにユーザートークンポリシーを構築します。

QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy(const QOpcUaUserTokenPolicy &rhs)

rhs からユーザートークンポリシーを構築します。

QString QOpcUaUserTokenPolicy::issuedTokenType() const

トークン・タイプの URI を返します。

setIssuedTokenType()も参照してください

QString QOpcUaUserTokenPolicy::issuerEndpointUrl() const

トークン発行サービスの URL を返します。

setIssuerEndpointUrl()も参照

QString QOpcUaUserTokenPolicy::policyId() const

このポリシーのサーバー割り当て識別子を返します。

setPolicyId()も参照ください

QString QOpcUaUserTokenPolicy::securityPolicy() const

ActivateSession のトークンの暗号化または署名時に必要なセキュリティポリシーの URI を返します。

setSecurityPolicy()も参照してください

void QOpcUaUserTokenPolicy::setIssuedTokenType(const QString &issuedTokenType)

トークン・タイプの URI をissuedTokenType に設定します。

issuedTokenType()も参照

void QOpcUaUserTokenPolicy::setIssuerEndpointUrl(const QString &issuerEndpointUrl)

トークン発行サービスの URL をissuerEndpointUrl に設定します。

issuerEndpointUrl()も参照

void QOpcUaUserTokenPolicy::setPolicyId(const QString &policyId)

このポリシーの識別子をpolicyId に設定する。

policyId()も参照してください

void QOpcUaUserTokenPolicy::setSecurityPolicy(const QString &securityPolicy)

セキュリティ・ポリシーの URI をsecurityPolicy に設定する。

securityPolicy()も参照してください

void QOpcUaUserTokenPolicy::setTokenType(QOpcUaUserTokenPolicy::TokenType tokenType)

必要なユーザー ID トークンのタイプをtokenType に設定します。

tokenType()も参照

QOpcUaUserTokenPolicy::TokenType QOpcUaUserTokenPolicy::tokenType() const

必要なユーザー ID トークンの型を返します。

setTokenType()も参照ください

QOpcUaUserTokenPolicy &QOpcUaUserTokenPolicy::operator=(const QOpcUaUserTokenPolicy &rhs)

このユーザートークンポリシーのrhs の値を設定します。

bool QOpcUaUserTokenPolicy::operator==(const QOpcUaUserTokenPolicy &rhs) const

このユーザートークンポリシーがrhs と同じ値を持つ場合、true を返す。

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