OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
lib
/
python3.12
/
site-packages
/
josepy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:50 PM
rwxr-xr-x
📄
__init__.py
1.64 KB
06/12/2025 06:19:38 PM
rw-r--r--
📁
__pycache__
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
b64.py
1.46 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
errors.py
792 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
interfaces.py
7.61 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
json_util.py
18.61 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
jwa.py
7.31 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
jwk.py
13.66 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
jws.py
15.49 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
magic_typing.py
557 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
py.typed
0 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
util.py
8.27 KB
06/12/2025 06:19:38 PM
rw-r--r--
Editing: errors.py
Close
"""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)