/** * Update this builder from JWK in json format. * * @param json JsonObject with the JWK * @return updated builder instance, just call {@link #build()} to build the {@link JwkOctet} instance * @see JwkOctet#create(JsonObject) as a shortcut if no additional configuration is to be done */ public Builder fromJson(JsonObject json) { super.fromJson(json); this.key = JwtUtil.asByteArray(json, PARAM_OCTET_KEY, "Octet key"); return this; }
/** * Update this builder from JWK in json format. * * @param json JsonObject with the JWK * @return updated builder instance, just call {@link #build()} to build the {@link JwkOctet} instance * @see JwkOctet#create(JsonObject) as a shortcut if no additional configuration is to be done */ public Builder fromJson(JsonObject json) { super.fromJson(json); this.key = JwtUtil.asByteArray(json, PARAM_OCTET_KEY, "Octet key"); return this; }