MCPcopy
hub / github.com/authlib/authlib / JWSObject

Class JWSObject

authlib/jose/rfc7515/models.py:69–85  ·  view source on GitHub ↗

A dict instance to represent a JWS object.

Source from the content-addressed store, hash-verified

67
68
69class JWSObject(dict):
70 """A dict instance to represent a JWS object."""
71
72 def __init__(self, header, payload, type="compact"):
73 super().__init__(
74 header=header,
75 payload=payload,
76 )
77 self.header = header
78 self.payload = payload
79 self.type = type
80
81 @property
82 def headers(self):
83 """Alias of ``header`` for JSON typed JWS."""
84 if self.type == "json":
85 return self["header"]

Callers 2

deserialize_compactMethod · 0.85
deserialize_jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…