QOpcUaUserTokenPolicy Class

OPC UA UserTokenPolicy . 更多...

頭: #include <QOpcUaUserTokenPolicy>
qmake: QT += opcua

公共類型

enum TokenType { Anonymous, Username, Certificate, IssuedToken }

公共函數

QOpcUaUserTokenPolicy (const QOpcUaUserTokenPolicy & rhs )
QOpcUaUserTokenPolicy & operator= (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
bool operator== (const QOpcUaUserTokenPolicy & rhs ) const

詳細描述

The user token policy contains information about an user token accepted by the server.

成員類型文檔編製

enum QOpcUaUserTokenPolicy:: TokenType

常量 描述
QOpcUaUserTokenPolicy::Anonymous 0 No token required.
QOpcUaUserTokenPolicy::Username 1 Username and password are required.
QOpcUaUserTokenPolicy::Certificate 2 A client certificate is required.
QOpcUaUserTokenPolicy::IssuedToken 3 Any Web Services Security (WS-Security) defined token.

成員函數文檔編製

QOpcUaUserTokenPolicy:: QOpcUaUserTokenPolicy (const QOpcUaUserTokenPolicy & rhs )

Constructs an user token policy from rhs .

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

設置值從 rhs in this user token policy.

QString QOpcUaUserTokenPolicy:: issuedTokenType () const

Returns the URI for the token type.

另請參閱 setIssuedTokenType ().

QString QOpcUaUserTokenPolicy:: issuerEndpointUrl () const

Returns the URL of a token issuing service.

另請參閱 setIssuerEndpointUrl ().

QString QOpcUaUserTokenPolicy:: policyId () const

Returns a server assigned identifier for this policy.

另請參閱 setPolicyId ().

QString QOpcUaUserTokenPolicy:: securityPolicy () const

Returns the URI of the security policy required when encrypting or signing the token for ActivateSession.

另請參閱 setSecurityPolicy ().

void QOpcUaUserTokenPolicy:: setIssuedTokenType (const QString & issuedTokenType )

Sets the URI for the token type to issuedTokenType .

另請參閱 issuedTokenType ().

void QOpcUaUserTokenPolicy:: setIssuerEndpointUrl (const QString & issuerEndpointUrl )

Sets the URL of the token issuing service to issuerEndpointUrl .

另請參閱 issuerEndpointUrl ().

void QOpcUaUserTokenPolicy:: setPolicyId (const QString & policyId )

Sets the identifier for this policy to policyId .

另請參閱 policyId ().

void QOpcUaUserTokenPolicy:: setSecurityPolicy (const QString & securityPolicy )

Sets the URI of the security policy to securityPolicy .

另請參閱 securityPolicy ().

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

Sets the type of the required user identity token to tokenType .

另請參閱 tokenType ().

QOpcUaUserTokenPolicy::TokenType QOpcUaUserTokenPolicy:: tokenType () const

Returns the type of the required user identity token.

另請參閱 setTokenType ().

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

返迴 true if this user token policy has the same value as rhs .