MCPcopy
hub / github.com/authlib/authlib / as_json

Method as_json

authlib/jose/rfc7517/base_key.py:93–96  ·  view source on GitHub ↗

Represent this key as a JSON string.

(self, is_private=False, **params)

Source from the content-addressed store, hash-verified

91 raise NotImplementedError()
92
93 def as_json(self, is_private=False, **params):
94 """Represent this key as a JSON string."""
95 obj = self.as_dict(is_private, **params)
96 return json_dumps(obj)
97
98 def thumbprint(self):
99 """Implementation of RFC7638 JSON Web Key (JWK) Thumbprint."""

Callers 1

test_ec_public_keyFunction · 0.45

Calls 2

as_dictMethod · 0.95
json_dumpsFunction · 0.90

Tested by 1

test_ec_public_keyFunction · 0.36