Return an encoded version of the serialized messages list which can be stored as plain text. Since the data will be retrieved from the client-side, the encoded data also contains a hash to ensure that the data was not tampered with.
(self, messages, encode_empty=False)
| 173 | return unstored_messages |
| 174 | |
| 175 | def _encode_parts(self, messages, encode_empty=False): |
| 176 | """ |
| 177 | Return an encoded version of the serialized messages list which can be |
| 178 | stored as plain text. |
| 179 | |
| 180 | Since the data will be retrieved from the client-side, the encoded data |
| 181 | also contains a hash to ensure that the data was not tampered with. |
| 182 | """ |
| 183 | if messages or encode_empty: |
| 184 | return self.signer.sign_object( |
| 185 | messages, serializer=MessagePartGatherSerializer, compress=True |
| 186 | ) |
| 187 | |
| 188 | def _encode(self, messages, encode_empty=False): |
| 189 | """ |
no test coverage detected