Added: Static method for jwt.algorithms.RSAAlgorithm.to_jwk(...) (#5047)

This commit is contained in:
Vyom Pathak
2021-02-22 21:17:02 +05:30
committed by GitHub
parent 1d1d35c87a
commit 97f9acf4ee

View File

@@ -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: ...