このページでは

QOpcUaEndpointDescription Class

OPC UA のエンドポイント記述。詳細...

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

パブリック型

enum MessageSecurityMode { Invalid, None, Sign, SignAndEncrypt }

プロパティ

公開関数

QOpcUaEndpointDescription()
QOpcUaEndpointDescription(const QOpcUaEndpointDescription &rhs)
QString endpointUrl() const
quint8 securityLevel() const
QOpcUaEndpointDescription::MessageSecurityMode securityMode() const
QString securityPolicy() const
QOpcUaApplicationDescription server() const
QByteArray serverCertificate() const
QOpcUaApplicationDescription &serverRef()
void setEndpointUrl(const QString &endpointUrl)
void setSecurityLevel(quint8 securityLevel)
void setSecurityMode(QOpcUaEndpointDescription::MessageSecurityMode securityMode)
void setSecurityPolicy(const QString &securityPolicy)
void setServer(const QOpcUaApplicationDescription &server)
void setServerCertificate(const QByteArray &serverCertificate)
void setTransportProfileUri(const QString &transportProfileUri)
void setUserIdentityTokens(const QList<QOpcUaUserTokenPolicy> &userIdentityTokens)
QString transportProfileUri() const
QList<QOpcUaUserTokenPolicy> userIdentityTokens() const
QList<QOpcUaUserTokenPolicy> &userIdentityTokensRef()
QOpcUaEndpointDescription &operator=(const QOpcUaEndpointDescription &rhs)
bool operator==(const QOpcUaEndpointDescription &rhs) const

詳細説明

エンドポイントの記述には、エンドポイントに関する情報と、そのエンドポイントへの接続方法が含まれています。

メンバ型のドキュメント

enum QOpcUaEndpointDescription::MessageSecurityMode

この列挙型は、エンドポイントがサポートするセキュリティモードを表します。

定数値説明
QOpcUaEndpointDescription::Invalid0デフォルト値。サーバーによって拒否されます。
QOpcUaEndpointDescription::None1セキュリティなし。
QOpcUaEndpointDescription::Sign2メッセージは署名されますが、暗号化はされません。メッセージは署名され、暗号化されます。
QOpcUaEndpointDescription::SignAndEncrypt3メッセージは署名され、暗号化されます。

プロパティのドキュメント

[read-only] endpointUrl : QString

エンドポイントのURL。

アクセス関数:

QString endpointUrl() const

[read-only] securityMode : QOpcUaEndpointDescription::MessageSecurityMode

このエンドポイントがサポートするセキュリティモード。

アクセス機能:

QOpcUaEndpointDescription::MessageSecurityMode securityMode() const

[read-only] securityPolicy : QString

セキュリティポリシーのURI。

アクセス機能:

QString securityPolicy() const

[read-only] server : QOpcUaApplicationDescription

サーバーのアプリケーション概要。

アクセス機能:

QOpcUaApplicationDescription server() const

[read-only] userIdentityTokens : QList<QOpcUaUserTokenPolicy>

エンドポイントが受け付けるユーザー識別トークンの一覧。

アクセス関数:

QList<QOpcUaUserTokenPolicy> userIdentityTokens() const

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

QOpcUaEndpointDescription::QOpcUaEndpointDescription()

「default」は、パラメータが設定されていないエンドポイントの記述を生成します。

QOpcUaEndpointDescription::QOpcUaEndpointDescription(const QOpcUaEndpointDescription &rhs)

rhs からエンドポイントの説明を生成します。

QString QOpcUaEndpointDescription::endpointUrl() const

エンドポイントのURLを返します。

注: プロパティ `endpointUrl`のゲッター 関数です。

関連項目: setEndpointUrl()。

quint8 QOpcUaEndpointDescription::securityLevel() const

サーバーによって割り当てられた相対インデックスを返します。これは、同じサーバー上の他のエンドポイントと比較して、このエンドポイントのセキュリティレベルがどの程度であるかを示します。強力なセキュリティ対策が施されているエンドポイントは、セキュリティ対策が不十分である、あるいは全く施されていないエンドポイントよりも高いセキュリティレベルとなります。

セキュリティレベル 0 は、下位互換性を目的としたエンドポイントを表しており、クライアントがよりセキュリティの高いエンドポイントで要求されるセキュリティ対策をサポートしていない場合にのみ使用すべきです。

setSecurityLevel()も参照してください 。

QOpcUaEndpointDescription::MessageSecurityMode QOpcUaEndpointDescription::securityMode() const

このエンドポイントがサポートするセキュリティモードを返します。

注: プロパティ securityModeのゲッター 関数です。

関連項目: setSecurityMode()。

QString QOpcUaEndpointDescription::securityPolicy() const

セキュリティポリシーのURIを返します。

Basic128Rsa15 および Basic256 セキュリティポリシーは非推奨となっており、サーバーが現在安全と見なされているポリシーを一切サポートしていない場合、下位互換性を確保するためのみに使用すべきです。

注: プロパティ securityPolicyのゲッター 関数。

関連項目: setSecurityPolicy()。

QOpcUaApplicationDescription QOpcUaEndpointDescription::server() const

サーバーのアプリケーション説明を返します。

注: プロパティ「server」のゲッター 関数です。

関連項目: setServer()。

QByteArray QOpcUaEndpointDescription::serverCertificate() const

サーバーのアプリケーションインスタンス証明書を返します。

setServerCertificate()も参照してください 。

QOpcUaApplicationDescription &QOpcUaEndpointDescription::serverRef()

サーバーのアプリケーション記述への参照を返します。

void QOpcUaEndpointDescription::setEndpointUrl(const QString &endpointUrl)

エンドポイントのURLをendpointUrl に設定します。

endpointUrl()も参照してください 。

void QOpcUaEndpointDescription::setSecurityLevel(quint8 securityLevel)

セキュリティレベルを「securityLevel 」に設定します。

「securityLevel()」も参照してください 。

void QOpcUaEndpointDescription::setSecurityMode(QOpcUaEndpointDescription::MessageSecurityMode securityMode)

このエンドポイントがサポートするセキュリティモードを「securityMode 」に設定します。

「securityMode()」も参照してください 。

void QOpcUaEndpointDescription::setSecurityPolicy(const QString &securityPolicy)

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

Basic128Rsa15 および Basic256 セキュリティポリシーは非推奨となっており、サーバーが現在安全と見なされているポリシーを一切サポートしていない場合に限り、下位互換性を確保するためにのみ使用すべきです。

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

void QOpcUaEndpointDescription::setServer(const QOpcUaApplicationDescription &server)

サーバーのアプリケーション説明を「server 」に設定します。

server()も参照してください 。

void QOpcUaEndpointDescription::setServerCertificate(const QByteArray &serverCertificate)

サーバーのアプリケーションインスタンス証明書を「serverCertificate 」に設定します。

serverCertificate()も参照してください 。

void QOpcUaEndpointDescription::setTransportProfileUri(const QString &transportProfileUri)

エンドポイントがサポートするトランスポートプロファイルのURIを「transportProfileUri 」に設定します。

transportProfileUri()も参照してください 。

void QOpcUaEndpointDescription::setUserIdentityTokens(const QList<QOpcUaUserTokenPolicy> &userIdentityTokens)

ユーザー識別トークンを「userIdentityTokens 」に設定します。

userIdentityTokens()も参照してください 。

QString QOpcUaEndpointDescription::transportProfileUri() const

エンドポイントがサポートするトランスポートプロファイルのURIを返します。

setTransportProfileUri()も参照してください 。

QList<QOpcUaUserTokenPolicy> QOpcUaEndpointDescription::userIdentityTokens() const

このエンドポイントが受け付けるユーザー識別トークンのリストを返します。

注: userIdentityTokens プロパティのゲッター 関数です。

関連項目: setUserIdentityTokens()。

QList<QOpcUaUserTokenPolicy> &QOpcUaEndpointDescription::userIdentityTokensRef()

エンドポイントが受け入れるユーザー識別トークンのリストへの参照を返します。

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

このエンドポイント記述において、rhs の値を設定します。

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

このエンドポイントの記述がrhs と同じ値を持つ場合、true を返します。

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