Class: LogStash::Inputs::Http::TLS
- Inherits:
-
Object
- Object
- LogStash::Inputs::Http::TLS
- Defined in:
- lib/logstash/inputs/http_bold/tls.rb
Defined Under Namespace
Classes: TLSOption
Constant Summary collapse
- TLS_PROTOCOL_OPTIONS =
[ TLSOption.new("TLSv1", 1), TLSOption.new("TLSv1.1", 1.1), TLSOption.new("TLSv1.2", 1.2) ]
Class Method Summary collapse
Class Method Details
.get_supported(versions) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/logstash/inputs/http_bold/tls.rb', line 32 def self.get_supported(versions) if versions.is_a?(Range) TLS_PROTOCOL_OPTIONS.select { |tls| versions.cover?(tls.version) } else TLS_PROTOCOL_OPTIONS.select { |tls| versions == tls.version } end end |
.max ⇒ Object
28 29 30 |
# File 'lib/logstash/inputs/http_bold/tls.rb', line 28 def self.max TLS_PROTOCOL_OPTIONS.max end |
.min ⇒ Object
24 25 26 |
# File 'lib/logstash/inputs/http_bold/tls.rb', line 24 def self.min TLS_PROTOCOL_OPTIONS.min end |