Пример #1
0
    def dump_jwks(self):
        """
        :return: A JWKS representation of the held keys
        """
        res = []
        for key in self._keys:
            res.append(b2s_conv(key.serialize()))

        return json.dumps({"keys": res})
Пример #2
0
    def dump_jwks(self):
        """
        :return: A JWKS representation of the held keys
        """
        res = []
        for key in self._keys:
            res.append(b2s_conv(key.serialize()))

        return json.dumps({"keys": res})
Пример #3
0
def test_b2s_conv_raise_exception_on_bad_value():
    with pytest.raises(ValueError):
        b2s_conv(object())
Пример #4
0
def test_b2s_conv_raise_exception_on_bad_value():
    with pytest.raises(ValueError):
        b2s_conv(object())