QOpcUaUserTokenPolicy Class
La UserTokenPolicy di OPC UA. Per saperne di più...
| Intestazione: | #include <QOpcUaUserTokenPolicy> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Tipi pubblici
| enum | TokenType { Anonymous, Username, Certificate, IssuedToken } |
Funzioni pubbliche
| 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 |
Descrizione dettagliata
La politica relativa ai token utente contiene informazioni su un token utente accettato dal server.
Documentazione sui tipi di membro
enum QOpcUaUserTokenPolicy::TokenType
| Costante | Valore | Descrizione |
|---|---|---|
QOpcUaUserTokenPolicy::Anonymous | 0 | Non è richiesto alcun token. |
QOpcUaUserTokenPolicy::Username | 1 | Sono richiesti nome utente e password. |
QOpcUaUserTokenPolicy::Certificate | 2 | È richiesto un certificato client. |
QOpcUaUserTokenPolicy::IssuedToken | 3 | Qualsiasi token definito da Web Services Security (WS-Security). |
Documentazione delle funzioni membro
QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy()
Per impostazione predefinita, viene creata una politica relativa ai token utente senza parametri specificati.
QOpcUaUserTokenPolicy::QOpcUaUserTokenPolicy(const QOpcUaUserTokenPolicy &rhs)
Crea una politica relativa ai token utente da rhs.
QString QOpcUaUserTokenPolicy::issuedTokenType() const
Restituisce l'URI relativo al tipo di token.
Vedi anche setIssuedTokenType().
QString QOpcUaUserTokenPolicy::issuerEndpointUrl() const
Restituisce l'URL di un servizio di emissione di token.
Vedi anche setIssuerEndpointUrl().
QString QOpcUaUserTokenPolicy::policyId() const
Restituisce un identificatore assegnato dal server per questa politica.
Vedi anche setPolicyId().
QString QOpcUaUserTokenPolicy::securityPolicy() const
Restituisce l'URI della politica di sicurezza richiesta durante la crittografia o la firma del token per ActivateSession.
Le politiche di sicurezza Basic128Rsa15 e Basic256 sono deprecate e dovrebbero essere utilizzate solo per motivi di retrocompatibilità, qualora il server non supporti nessuna delle politiche attualmente considerate sicure.
Vedi anche setSecurityPolicy().
void QOpcUaUserTokenPolicy::setIssuedTokenType(const QString &issuedTokenType)
Imposta l'URI per il tipo di token su issuedTokenType.
Vedi anche issuedTokenType().
void QOpcUaUserTokenPolicy::setIssuerEndpointUrl(const QString &issuerEndpointUrl)
Imposta l'URL del servizio di emissione dei token su issuerEndpointUrl.
Vedi anche issuerEndpointUrl().
void QOpcUaUserTokenPolicy::setPolicyId(const QString &policyId)
Imposta l'identificatore di questa politica su policyId.
Vedi anche policyId().
void QOpcUaUserTokenPolicy::setSecurityPolicy(const QString &securityPolicy)
Imposta l'URI della politica di sicurezza su securityPolicy.
Le politiche di sicurezza Basic128Rsa15 e Basic256 sono deprecate e dovrebbero essere utilizzate solo per motivi di retrocompatibilità, qualora il server non supporti nessuna delle politiche attualmente considerate sicure.
Vedi anche securityPolicy().
void QOpcUaUserTokenPolicy::setTokenType(QOpcUaUserTokenPolicy::TokenType tokenType)
Imposta il tipo del token di identità utente richiesto su tokenType.
Vedi anche tokenType().
QOpcUaUserTokenPolicy::TokenType QOpcUaUserTokenPolicy::tokenType() const
Restituisce il tipo del token di identità utente richiesto.
Vedi anche setTokenType().
QOpcUaUserTokenPolicy &QOpcUaUserTokenPolicy::operator=(const QOpcUaUserTokenPolicy &rhs)
Imposta i valori provenienti da rhs in questa politica relativa ai token utente.
bool QOpcUaUserTokenPolicy::operator==(const QOpcUaUserTokenPolicy &rhs) const
Restituisce " true " se questa politica relativa ai token utente ha lo stesso valore di " rhs".
© 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.