Sha256: 6e007d3154941a6d1587ef3df03f7a8276a08196de7905a99b051df1bb57d8a4

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/config/api_proxy_configuration'
require 'contrast/config/certification_configuration'
require 'contrast/config/request_audit_configuration'

module Contrast
  module Config
    # Api keys configuration
    class ApiConfiguration < BaseConfiguration
      URL = 'https://app.contrastsecurity.com/Contrast'
      KEYS = {
          api_key: EMPTY_VALUE,
          url: URL,
          user_name: EMPTY_VALUE,
          service_key: EMPTY_VALUE,
          proxy: Contrast::Config::ApiProxyConfiguration,
          request_audit: Contrast::Config::RequestAuditConfiguration,
          certificate: Contrast::Config::CertificationConfiguration
      }.cs__freeze
      def initialize hsh
        super(hsh, KEYS)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-5.1.0 lib/contrast/config/api_configuration.rb
contrast-agent-5.0.0 lib/contrast/config/api_configuration.rb