Sha256: 1183222a6fbb2d430853f1bdf85829bd86aae102b596af67bdf50348f6de81dd

Contents?: true

Size: 895 Bytes

Versions: 16

Compression:

Stored size: 895 Bytes

Contents

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

module Contrast
  module Config
    # Certificate Configuration
    class CertificationConfiguration
      include Contrast::Config::BaseConfiguration

      # @return [String] path to CA Cert file
      attr_accessor :ca_file
      # @return [String] path to Certification file
      attr_accessor :cert_file
      # @return [String] path to Certification Key file
      attr_accessor :key_file
      attr_writer :enable

      def initialize hsh = {}
        return unless hsh

        @enable = hsh[:enable]
        @ca_file = hsh[:ca_file]
        @cert_file = hsh[:cert_file]
        @key_file = hsh[:key_file]
      end

      # @return [Boolean, false]
      def enable
        @enable.nil? ? false : @enable
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
contrast-agent-6.8.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.7.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.5 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.4 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.3 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.2 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.1 lib/contrast/config/certification_configuration.rb
contrast-agent-6.6.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.5.1 lib/contrast/config/certification_configuration.rb
contrast-agent-6.5.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.4.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.3.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.2.0 lib/contrast/config/certification_configuration.rb
contrast-agent-6.1.2 lib/contrast/config/certification_configuration.rb
contrast-agent-6.1.1 lib/contrast/config/certification_configuration.rb
contrast-agent-6.1.0 lib/contrast/config/certification_configuration.rb