Class: RosettAi::Mcp::HttpSecurityConfig::TlsConfig
- Inherits:
-
Object
- Object
- RosettAi::Mcp::HttpSecurityConfig::TlsConfig
- Defined in:
- lib/rosett_ai/mcp/http_security_config.rb
Overview
TLS sub-configuration.
Instance Attribute Summary collapse
-
#cert_path ⇒ Object
Returns the value of attribute cert_path.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#key_path ⇒ Object
Returns the value of attribute key_path.
Instance Method Summary collapse
- #apply(hash) ⇒ Object
-
#initialize ⇒ TlsConfig
constructor
A new instance of TlsConfig.
Constructor Details
#initialize ⇒ TlsConfig
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_path ⇒ Object
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 |
#enabled ⇒ Object
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_path ⇒ Object
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 |