MCPcopy Create free account
hub / github.com/mpdavis/python-jose / DIRKey

Class DIRKey

jose/backends/base.py:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79class DIRKey(Key):
80 def __init__(self, key_data, algorithm):
81 self._key = ensure_binary(key_data)
82 self._alg = algorithm
83
84 def to_dict(self):
85 return {
86 "alg": self._alg,
87 "kty": "oct",
88 "k": base64url_encode(self._key),
89 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…