(self, body, content_type, content_encoding, signer, signature,
sep=DEFAULT_SEPARATOR)
| 58 | payload['content_encoding'], force=True) |
| 59 | |
| 60 | def _pack(self, body, content_type, content_encoding, signer, signature, |
| 61 | sep=DEFAULT_SEPARATOR): |
| 62 | fields = sep.join( |
| 63 | ensure_bytes(s) for s in [b64encode(signer), b64encode(signature), |
| 64 | content_type, content_encoding, body] |
| 65 | ) |
| 66 | return b64encode(fields) |
| 67 | |
| 68 | def _unpack(self, payload, sep=DEFAULT_SEPARATOR): |
| 69 | raw_payload = b64decode(ensure_bytes(payload)) |