Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.52
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
jwt /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-04-01 06:16
__init__.py
1.57
KB
-rw-r--r--
2026-03-26 13:14
algorithms.py
29.1
KB
-rw-r--r--
2026-03-26 13:14
api_jwk.py
4.1
KB
-rw-r--r--
2026-03-26 13:14
api_jws.py
11.79
KB
-rw-r--r--
2026-03-26 13:14
api_jwt.py
11.55
KB
-rw-r--r--
2026-03-26 13:14
exceptions.py
1.02
KB
-rw-r--r--
2026-03-26 13:14
help.py
1.71
KB
-rw-r--r--
2026-03-26 13:14
jwk_set_cache.py
959
B
-rw-r--r--
2026-03-26 13:14
jwks_client.py
3.96
KB
-rw-r--r--
2026-03-26 13:14
py.typed
0
B
-rw-r--r--
2026-03-26 13:14
types.py
99
B
-rw-r--r--
2026-03-26 13:14
utils.py
3.81
KB
-rw-r--r--
2026-03-26 13:14
warnings.py
59
B
-rw-r--r--
2026-03-26 13:14
Save
Rename
import time from typing import Optional from .api_jwk import PyJWKSet, PyJWTSetWithTimestamp class JWKSetCache: def __init__(self, lifespan: int) -> None: self.jwk_set_with_timestamp: Optional[PyJWTSetWithTimestamp] = None self.lifespan = lifespan def put(self, jwk_set: PyJWKSet) -> None: if jwk_set is not None: self.jwk_set_with_timestamp = PyJWTSetWithTimestamp(jwk_set) else: # clear cache self.jwk_set_with_timestamp = None def get(self) -> Optional[PyJWKSet]: if self.jwk_set_with_timestamp is None or self.is_expired(): return None return self.jwk_set_with_timestamp.get_jwk_set() def is_expired(self) -> bool: return ( self.jwk_set_with_timestamp is not None and self.lifespan > -1 and time.monotonic() > self.jwk_set_with_timestamp.get_timestamp() + self.lifespan )