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)
| 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 | """ |
no test coverage detected