Class: Resolv::DNS::Resource::IN::TLSA
- Inherits:
-
Object
- Object
- Resolv::DNS::Resource::IN::TLSA
- Defined in:
- lib/resolv/dns/resource/in/tlsa.rb
Defined Under Namespace
Modules: CertificateUsage, MatchingType, Selector
Instance Attribute Summary collapse
-
#certificate_association_data ⇒ Object
readonly
Returns the value of attribute certificate_association_data.
-
#certificate_usage ⇒ Object
readonly
Returns the value of attribute certificate_usage.
-
#matching_type ⇒ Object
readonly
Returns the value of attribute matching_type.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
Instance Method Summary collapse
- #end_entity? ⇒ Boolean
-
#initialize(data) ⇒ TLSA
constructor
A new instance of TLSA.
Constructor Details
#initialize(data) ⇒ TLSA
Returns a new instance of TLSA.
26 27 28 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 26 def initialize(data) @certificate_usage, @selector, @matching_type, @certificate_association_data = data.unpack('CCCH*') end |
Instance Attribute Details
#certificate_association_data ⇒ Object (readonly)
Returns the value of attribute certificate_association_data.
30 31 32 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 30 def certificate_association_data @certificate_association_data end |
#certificate_usage ⇒ Object (readonly)
Returns the value of attribute certificate_usage.
30 31 32 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 30 def certificate_usage @certificate_usage end |
#matching_type ⇒ Object (readonly)
Returns the value of attribute matching_type.
30 31 32 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 30 def matching_type @matching_type end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
30 31 32 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 30 def selector @selector end |
Instance Method Details
#end_entity? ⇒ Boolean
32 33 34 |
# File 'lib/resolv/dns/resource/in/tlsa.rb', line 32 def end_entity? [CertificateUsage::PKIX_EE, CertificateUsage::DANE_EE].include?(certificate_usage) end |