| 77 | |
| 78 | |
| 79 | class 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…