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