clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Update a JSON Web Key
# Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own.  A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
# @param kid [String] The kid of the desired key
# @param set [String] The set
# @param [Hash] opts the optional parameters
# @option opts [JSONWebKey] :body 
# @return [Array<(JSONWebKey, Integer, Hash)>] JSONWebKey data, response status code and response headers
Update a JSON Web Key
Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own.  A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
Update a JSON Web Key Use this method if you do not want to let Hydra generate the JWKs for you but instead save your own . A JSON Web Key ( JWK ) is a JavaScript Object Notation ( JSON ) data structure that represents a cryptographic key . A JWK Set is a JSON data structure that represents a set of JWKs . A JSON Web Key is identified by its set and key id . ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens ( such as OpenID Connect ID tokens ) and allows storing user - defined keys as well .
def update_json_web_key_with_http_info(kid, set, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.update_json_web_key ...'
      end
      if @api_client.config.client_side_validation && kid.nil?
        fail ArgumentError, "Missing the required parameter 'kid' when calling AdminApi.update_json_web_key"
      end
      if @api_client.config.client_side_validation && set.nil?
        fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.update_json_web_key"
      end
      local_var_path = '/keys/{set}/{kid}'.sub('{' + 'kid' + '}', CGI.escape(kid.to_s)).sub('{' + 'set' + '}', CGI.escape(set.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
      return_type = opts[:debug_return_type] || 'JSONWebKey'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.update_json_web_key",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#update_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def update_json_web_key_with_http_info ( kid , set , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.update_json_web_key ...' end if @api_client . config . client_side_validation && kid . nil? fail ArgumentError , "Missing the required parameter 'kid' when calling AdminApi.update_json_web_key" end if @api_client . config . client_side_validation && set . nil? fail ArgumentError , "Missing the required parameter 'set' when calling AdminApi.update_json_web_key" end local_var_path = '/keys/{set}/{kid}' . sub ( '{' + 'kid' + '}' , CGI . escape ( kid . to_s ) ) . sub ( '{' + 'set' + '}' , CGI . escape ( set . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( opts [ :' body ' ] ) return_type = opts [ :debug_return_type ] || 'JSONWebKey' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.update_json_web_key " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :PUT , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#update_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Update a JSON Web Key
Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own.
Update a JSON Web Key Use this method if you do not want to let Hydra generate the JWKs for you but instead save your own .
# verify the required parameter 'kid' is set # verify the required parameter 'set' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
JSONWebKey data, response status code and response headers
JSONWebKey data response status code and response headers
Array<(JSONWebKey, Integer, Hash)>
kid
The kid of the desired key
The kid of the desired key
set
None
opts
None
<not_specific>
opts the optional parameters
opts the optional parameters