Codebase list python-jwcrypto / 3ba7408
Document InvalidJWSOperation exception for JWSCore constructor Peter Meerwald-Stadler authored 2 years ago Simo Sorce committed 2 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
107107 :raises ValueError: if the key is not a :class:`JWK` object
108108 :raises InvalidJWAAlgorithm: if the algorithm is not valid, is
109109 unknown or otherwise not yet implemented.
110 :raises InvalidJWSOperation: if the algorithm is not allowed.
110111 """
111112 self.alg = alg
112113 self.engine = self._jwa(alg, algs)