OPC UA UserTokenPolicy . 更多...
头: | #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 |
The user token policy contains information about an user token accepted by the server.
常量 | 值 | 描述 |
---|---|---|
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. |
Default constructs a user token policy with no parameters set.
Constructs an user token policy from rhs .
Returns the URI for the token type.
另请参阅 setIssuedTokenType ().
Returns the URL of a token issuing service.
另请参阅 setIssuerEndpointUrl ().
Returns a server assigned identifier for this policy.
另请参阅 setPolicyId ().
Returns the URI of the security policy required when encrypting or signing the token for ActivateSession.
另请参阅 setSecurityPolicy ().
Sets the URI for the token type to issuedTokenType .
另请参阅 issuedTokenType ().
Sets the URL of the token issuing service to issuerEndpointUrl .
另请参阅 issuerEndpointUrl ().
Sets the identifier for this policy to policyId .
另请参阅 policyId ().
Sets the URI of the security policy to securityPolicy .
另请参阅 securityPolicy ().
Sets the type of the required user identity token to tokenType .
另请参阅 tokenType ().
Returns the type of the required user identity token.
另请参阅 setTokenType ().
设置值从 rhs in this user token policy.
返回
true
if this user token policy has the same value as
rhs
.