Replaced the static methods to create a new RSAKey or SimpleKey given a JsonReader with a constructor that accepts a Map that should contain the relevant keys.
Also added two new static methods to the RSAKey class which can be used to get the exponent and modulus of an RSAKey.
Why
The constructor change is a more intuitive solution for the problem and the RSAKey static methods for the exponent/modulus might become useful in the future for distributing keys to other apps.
How
You can run the unittests to verify that all the code in data_objects is still covered so it should work correctly
Relevant Issues: -
Related Pull Requests: -
What
Replaced the static methods to create a new
RSAKey
orSimpleKey
given aJsonReader
with a constructor that accepts aMap
that should contain the relevant keys.Also added two new static methods to the
RSAKey
class which can be used to get theexponent
andmodulus
of anRSAKey
.Why
The constructor change is a more intuitive solution for the problem and the
RSAKey
static methods for the exponent/modulus might become useful in the future for distributing keys to other apps.How
You can run the unittests to verify that all the code in
data_objects
is still covered so it should work correctlyAlternative implementation
None
Notes
None