__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""JOSE errors."""
from typing import Any
class Error(Exception):
"""Generic JOSE Error."""
class DeserializationError(Error):
"""JSON deserialization error."""
def __str__(self) -> str:
return "Deserialization error: {0}".format(super().__str__())
class SerializationError(Error):
"""JSON serialization error."""
class UnrecognizedTypeError(DeserializationError):
"""Unrecognized type error.
:ivar str typ: The unrecognized type of the JSON object.
:ivar jobj: Full JSON object.
"""
def __init__(self, typ: str, jobj: Any) -> None:
self.typ = typ
self.jobj = jobj
super().__init__(str(self))
def __str__(self) -> str:
return "{0} was not recognized, full message: {1}".format(self.typ, self.jobj)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 1.91 KB | 0644 |
|
| b64.py | File | 1.45 KB | 0644 |
|
| errors.py | File | 791 B | 0644 |
|
| interfaces.py | File | 7.61 KB | 0644 |
|
| json_util.py | File | 18.11 KB | 0644 |
|
| jwa.py | File | 7.31 KB | 0644 |
|
| jwk.py | File | 13.66 KB | 0644 |
|
| jws.py | File | 15.13 KB | 0644 |
|
| magic_typing.py | File | 556 B | 0644 |
|
| py.typed | File | 0 B | 0644 |
|
| util.py | File | 9.81 KB | 0644 |
|