Ejemplo n.º 1
0
  @Override
  public JSONObject toJSONObject() throws JSONException {
    JSONObject jsonObject = new JSONObject();
    jsonObject.put("modulus", JSONObject.NULL);
    jsonObject.put("privateExponent", JSONObject.NULL);
    jsonObject.put("d", JwtUtil.base64urlencodeUnsignedBigInt(d));

    return jsonObject;
  }
Ejemplo n.º 2
0
 public ECDSAPrivateKey(String d) {
   this.d = new BigInteger(1, JwtUtil.base64urldecode(d));
 }