class SSLyze::X509::Extensions::ExtendedKeyUsage
Represents the `extendedKeyUsage` X509v3 extension.
@since 1.0.0
Public Instance Methods
each(&block)
click to toggle source
Enumerates over the allowed extended key uses.
@yield [use]
@yieldparam [String] use
@return [Enumerator]
# File lib/sslyze/x509/extensions/extended_key_usage.rb, line 33 def each(&block) uses.each(&block) end
tls_web_client_authentication?()
click to toggle source
Determines if TLS Web Client Authentication is allowed.
@return [Boolean]
# File lib/sslyze/x509/extensions/extended_key_usage.rb, line 51 def tls_web_client_authentication? uses.include?('TLS Web Client Authentication') end
tls_web_server_authentication?()
click to toggle source
Determines if TLS Web Server Authentication is allowed.
@return [Boolean]
# File lib/sslyze/x509/extensions/extended_key_usage.rb, line 42 def tls_web_server_authentication? uses.include?('TLS Web Server Authentication') end
uses()
click to toggle source
The allowed extended key uses.
@return [Array<String>]
# File lib/sslyze/x509/extensions/extended_key_usage.rb, line 20 def uses @uses ||= value.split(', ') end