RFC 7517: JSON Web Key (JWK).
id() = binary()
json() = binary()
pem() = binary()
public_key() = #RSAPublicKey{} | pem()
decode/2 | decode JWK to Erlang/OTP Key. |
encode/2 | encode Erlang/OTP Key to JWK. |
decode(Id::id(), Json::json()) -> {ok, public_key()} | {error, term()}
decode JWK to Erlang/OTP Key
encode(Id::id(), PEM::public_key()) -> {ok, json()} | {error, term()}
encode Erlang/OTP Key to JWK