MCPcopy Index your code
hub / github.com/authlib/authlib / get_header_enc

Method get_header_enc

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

Source from the content-addressed store, hash-verified

712 return instance
713
714 def get_header_enc(self, header):
715 if "enc" not in header:
716 raise MissingEncryptionAlgorithmError()
717 enc = header["enc"]
718 if self._algorithms is not None and enc not in self._algorithms:
719 raise UnsupportedEncryptionAlgorithmError()
720 if enc not in self.ENC_REGISTRY:
721 raise UnsupportedEncryptionAlgorithmError()
722 return self.ENC_REGISTRY[enc]
723
724 def get_header_zip(self, header):
725 if "zip" in header:

Callers 4

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

Tested by

no test coverage detected