lib/oci/key_management/kms_crypto_client.rb
# Verifies a digital signature that was generated by the [Sign](https://docs.cloud.oracle.com/api/#/en/key/latest/SignedData/Sign) operation
# by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the
# digital signature outside of the service, you can do so by using the public key of the asymmetric key.
#
# @param [OCI::KeyManagement::Models::VerifyDataDetails] verify_data_details VerifyDataDetails
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :opc_request_id Unique identifier for the request. If provided, the returned request ID
#   will include this value. Otherwise, a random request ID will be
#   generated by the service.
#
# @return [Response] A Response object with data of type {OCI::KeyManagement::Models::VerifiedData VerifiedData}
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/keymanagement/verify.rb.html) to see an example of how to use verify API.
Verifies a digital signature that was generated by the [Sign] operation
by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the
digital signature outside of the service, you can do so by using the public key of the asymmetric key.
Verifies a digital signature that was generated by the [ Sign ] operation by using the public key of the same asymmetric key that was used to sign the data . If you want to validate the digital signature outside of the service you can do so by using the public key of the asymmetric key .
def verify(verify_data_details, opts = {})
      logger.debug 'Calling operation KmsCryptoClient#verify.' if logger
      raise "Missing the required parameter 'verify_data_details' when calling verify." if verify_data_details.nil?
      path = '/20180608/verify'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = @api_client.object_to_http_body(verify_data_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsCryptoClient#verify') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::KeyManagement::Models::VerifiedData'
        )
      end
    end
def verify ( verify_data_details , opts = { } ) logger . debug 'Calling operation KmsCryptoClient#verify.' if logger raise "Missing the required parameter 'verify_data_details' when calling verify." if verify_data_details . nil? path = '/20180608/verify' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = @api_client . object_to_http_body ( verify_data_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'KmsCryptoClient#verify' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'OCI::KeyManagement::Models::VerifiedData' ) end end
Verifies a digital signature that was generated by the [Sign](https://docs.cloud.oracle.com/api/#/en/key/latest/SignedData/Sign) operation
by using the public key of the same asymmetric key that was used to sign the data.
Verifies a digital signature that was generated by the [ Sign ] ( https : // docs . cloud . oracle . com / api / # / en / key / latest / SignedData / Sign ) operation by using the public key of the same asymmetric key that was used to sign the data .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type {OCI::KeyManagement::Models::VerifiedData VerifiedData}
A Response object with data of type { OCI :: KeyManagement :: Models :: VerifiedData VerifiedData }
Response
verify_data_details
opts
:opc_request_id Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.
: opc_request_id Unique identifier for the request . If provided the returned request ID will include this value . Otherwise a random request ID will be generated by the service .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use verify API.
Click [ here ] to see an example of how to use verify API .