MCPcopy
hub / github.com/authlib/authlib / get_header_zip

Method get_header_zip

authlib/jose/rfc7516/jwe.py:724–731  ·  view source on GitHub ↗
(self, header)

Source from the content-addressed store, hash-verified

722 return self.ENC_REGISTRY[enc]
723
724 def get_header_zip(self, header):
725 if "zip" in header:
726 z = header["zip"]
727 if self._algorithms is not None and z not in self._algorithms:
728 raise UnsupportedCompressionAlgorithmError()
729 if z not in self.ZIP_REGISTRY:
730 raise UnsupportedCompressionAlgorithmError()
731 return self.ZIP_REGISTRY[z]
732
733 def _validate_sender_key(self, sender_key, alg):
734 if isinstance(alg, JWEAlgorithmWithTagAwareKeyAgreement):

Callers 4

serialize_compactMethod · 0.95
serialize_jsonMethod · 0.95
deserialize_compactMethod · 0.95
deserialize_jsonMethod · 0.95

Tested by

no test coverage detected