clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Generate a New JSON Web Key
# This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created.  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 set [String] The set
# @param [Hash] opts the optional parameters
# @option opts [JsonWebKeySetGeneratorRequest] :body 
# @return [Array<(JSONWebKeySet, Integer, Hash)>] JSONWebKeySet data, response status code and response headers
Generate a New JSON Web Key
This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created.  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.
Generate a New JSON Web Key This endpoint is capable of generating JSON Web Key Sets for you . There a different strategies available such as symmetric cryptographic keys ( HS256 HS512 ) and asymetric cryptographic keys ( RS256 ECDSA ) . If the specified JSON Web Key Set does not exist it will be created . 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 create_json_web_key_set_with_http_info(set, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.create_json_web_key_set ...'
      end
      if @api_client.config.client_side_validation && set.nil?
        fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.create_json_web_key_set"
      end
      local_var_path = '/keys/{set}'.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] || 'JSONWebKeySet'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.create_json_web_key_set",
        :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(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#create_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_json_web_key_set_with_http_info ( set , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.create_json_web_key_set ...' end if @api_client . config . client_side_validation && set . nil? fail ArgumentError , "Missing the required parameter 'set' when calling AdminApi.create_json_web_key_set" end local_var_path = '/keys/{set}' . 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 ] || 'JSONWebKeySet' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.create_json_web_key_set " , :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 ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#create_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Generate a New JSON Web Key
This endpoint is capable of generating JSON Web Key Sets for you.
Generate a New JSON Web Key This endpoint is capable of generating JSON Web Key Sets for you .
# 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
JSONWebKeySet data, response status code and response headers
JSONWebKeySet data response status code and response headers
Array<(JSONWebKeySet, Integer, Hash)>
set
None
opts
None
<not_specific>
opts the optional parameters
opts the optional parameters