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

Method revolve_tokens

opcua/common/connection.py:220–229  ·  view source on GitHub ↗

Revolve security tokens of the security channel. Start using the next security token negotiated during the renewal of the channel and remember the previous token until the other communication party

(self)

Source from the content-addressed store, hash-verified

218 raise ua.UaError("No matching policy: {0}, {1}".format(uri, mode))
219
220 def revolve_tokens(self):
221 """
222 Revolve security tokens of the security channel. Start using the
223 next security token negotiated during the renewal of the channel and
224 remember the previous token until the other communication party
225 """
226 self.prev_security_token = self.security_token
227 self.security_token = self.next_security_token
228 self.next_security_token = ua.ChannelSecurityToken()
229 self.security_policy.make_local_symmetric_key(self.remote_nonce, self.local_nonce)
230
231 def message_to_binary(self, message, message_type=ua.MessageType.SecureMessage, request_id=0):
232 """

Callers 2

_check_sym_headerMethod · 0.95
_send_requestMethod · 0.80

Calls 1

Tested by

no test coverage detected