PySide6.QtOpcUa.QOpcUaUserTokenPolicy

class QOpcUaUserTokenPolicy

The OPC UA UserTokenPolicy . More

Synopsis

Methods

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__(arg__1)
Parameters:

arg__1QOpcUaUserTokenPolicy

Constructs an user token policy from rhs.

issuedTokenType()
Return type:

str

Returns the URI for the token type.

issuerEndpointUrl()
Return type:

str

Returns the URL of a token issuing service.

__eq__(arg__1)
Parameters:

arg__1QOpcUaUserTokenPolicy

Return type:

bool

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

policyId()
Return type:

str

Returns a server assigned identifier for this policy.

See also

setPolicyId()

securityPolicy()
Return type:

str

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

setIssuedTokenType(issuedTokenType)
Parameters:

issuedTokenType – str

Sets the URI for the token type to issuedTokenType.

setIssuerEndpointUrl(issuerEndpointUrl)
Parameters:

issuerEndpointUrl – str

Sets the URL of the token issuing service to issuerEndpointUrl.

setPolicyId(policyId)
Parameters:

policyId – str

Sets the identifier for this policy to policyId.

See also

policyId()

setSecurityPolicy(securityPolicy)
Parameters:

securityPolicy – str

Sets the URI of the security policy to securityPolicy.

See also

securityPolicy()

setTokenType(tokenType)
Parameters:

tokenTypeTokenType

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

See also

tokenType()

tokenType()
Return type:

TokenType

Returns the type of the required user identity token.

See also

setTokenType()