From 97f9acf4eee019d4ca8d179f33ebd11f09452045 Mon Sep 17 00:00:00 2001 From: Vyom Pathak Date: Mon, 22 Feb 2021 21:17:02 +0530 Subject: [PATCH] Added: Static method for jwt.algorithms.RSAAlgorithm.to_jwk(...) (#5047) --- stubs/jwt/jwt/algorithms.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/jwt/jwt/algorithms.pyi b/stubs/jwt/jwt/algorithms.pyi index fe83e56b6..eb76c6590 100644 --- a/stubs/jwt/jwt/algorithms.pyi +++ b/stubs/jwt/jwt/algorithms.pyi @@ -65,6 +65,8 @@ class RSAAlgorithm(Algorithm[Any]): def __init__(self, hash_alg: Union[HashAlgorithm, Prehashed]) -> None: ... def prepare_key(self, key: Union[bytes, str, RSAPrivateKey, RSAPublicKey]) -> Union[RSAPrivateKey, RSAPublicKey]: ... @staticmethod + def to_jwk(key_obj: Any) -> str: ... + @staticmethod def from_jwk(jwk: Union[str, bytes, Dict[str, Any]]) -> Union[RSAPrivateKey, RSAPublicKey]: ... def sign(self, msg: bytes, key: RSAPrivateKey) -> bytes: ... def verify(self, msg: bytes, key: RSAPublicKey, sig: bytes) -> bool: ...