PySide6.QtOpcUa.QOpcUaUserTokenPolicy¶
- class QOpcUaUserTokenPolicy¶
- The OPC UA UserTokenPolicy . More… - Synopsis¶- Methods¶- def - __init__()
- def - __eq__()
- def - policyId()
- def - securityPolicy()
- def - setPolicyId()
- def - setTokenType()
- def - tokenType()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- The user token policy contains information about an user token accepted by the server. - class TokenType¶
- Constant - Description - QOpcUaUserTokenPolicy.Anonymous - No token required. - QOpcUaUserTokenPolicy.Username - Username and password are required. - QOpcUaUserTokenPolicy.Certificate - A client certificate is required. - QOpcUaUserTokenPolicy.IssuedToken - Any Web Services Security (WS-Security) defined token. 
 - __init__()¶
 - Default constructs a user token policy with no parameters set. - __init__(rhs)
- Parameters:
- rhs – - QOpcUaUserTokenPolicy
 
 - Constructs an user token policy from - rhs.- issuedTokenType()¶
- Return type:
- str 
 
 - Returns the URI for the token type. - See also - issuerEndpointUrl()¶
- Return type:
- str 
 
 - Returns the URL of a token issuing service. - See also - __eq__(rhs)¶
- Parameters:
- rhs – - QOpcUaUserTokenPolicy
- Return type:
- bool 
 
 - Returns - trueif this user token policy has the same value as- rhs.- policyId()¶
- Return type:
- str 
 
 - Returns a server assigned identifier for this policy. - See also - securityPolicy()¶
- Return type:
- str 
 
 - Returns the URI of the security policy required when encrypting or signing the token for ActivateSession. - See also - setIssuedTokenType(issuedTokenType)¶
- Parameters:
- issuedTokenType – str 
 
 - Sets the URI for the token type to - issuedTokenType.- See also - setIssuerEndpointUrl(issuerEndpointUrl)¶
- Parameters:
- issuerEndpointUrl – str 
 
 - Sets the URL of the token issuing service to - issuerEndpointUrl.- See also - setPolicyId(policyId)¶
- Parameters:
- policyId – str 
 
 - Sets the identifier for this policy to - policyId.- See also - setSecurityPolicy(securityPolicy)¶
- Parameters:
- securityPolicy – str 
 
 - Sets the URI of the security policy to - securityPolicy.- See also - Sets the type of the required user identity token to - tokenType.- See also - Returns the type of the required user identity token. - See also