Class: RosettAi::Mcp::HttpSecurityConfig::TlsConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/mcp/http_security_config.rb

Overview

TLS sub-configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTlsConfig

Returns a new instance of TlsConfig.



81
82
83
84
85
# File 'lib/rosett_ai/mcp/http_security_config.rb', line 81

def initialize
  @enabled = false
  @cert_path = nil
  @key_path = nil
end

Instance Attribute Details

#cert_pathObject

Returns the value of attribute cert_path.



79
80
81
# File 'lib/rosett_ai/mcp/http_security_config.rb', line 79

def cert_path
  @cert_path
end

#enabledObject

Returns the value of attribute enabled.



79
80
81
# File 'lib/rosett_ai/mcp/http_security_config.rb', line 79

def enabled
  @enabled
end

#key_pathObject

Returns the value of attribute key_path.



79
80
81
# File 'lib/rosett_ai/mcp/http_security_config.rb', line 79

def key_path
  @key_path
end

Instance Method Details

#apply(hash) ⇒ Object



87
88
89
90
91
92
93
# File 'lib/rosett_ai/mcp/http_security_config.rb', line 87

def apply(hash)
  return unless hash.is_a?(Hash)

  @enabled = hash['enabled'] if hash.key?('enabled')
  @cert_path = hash['cert_path'] if hash['cert_path']
  @key_path = hash['key_path'] if hash['key_path']
end