MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / server_policy_id

Method server_policy_id

opcua/client/client.py:413–421  ·  view source on GitHub ↗

Find PolicyId of server's UserTokenPolicy by token_type. Return default if there's no matching UserTokenPolicy.

(self, token_type, default)

Source from the content-addressed store, hash-verified

411 return response
412
413 def server_policy_id(self, token_type, default):
414 """
415 Find PolicyId of server's UserTokenPolicy by token_type.
416 Return default if there's no matching UserTokenPolicy.
417 """
418 for policy in self._policy_ids:
419 if policy.TokenType == token_type:
420 return policy.PolicyId
421 return default
422
423 def server_policy_uri(self, token_type):
424 """

Callers 3

_add_anonymous_authMethod · 0.95
_add_certificate_authMethod · 0.95
_add_user_authMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected