Class: Acme::Client::ChainIdentifier
- Inherits:
-
Object
- Object
- Acme::Client::ChainIdentifier
- Defined in:
- lib/acme/client/chain_identifier.rb
Instance Method Summary collapse
-
#initialize(pem_certificate_chain) ⇒ ChainIdentifier
constructor
A new instance of ChainIdentifier.
- #match_name?(name) ⇒ Boolean
Constructor Details
#initialize(pem_certificate_chain) ⇒ ChainIdentifier
Returns a new instance of ChainIdentifier.
3 4 5 |
# File 'lib/acme/client/chain_identifier.rb', line 3 def initialize(pem_certificate_chain) @pem_certificate_chain = pem_certificate_chain end |
Instance Method Details
#match_name?(name) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/acme/client/chain_identifier.rb', line 7 def match_name?(name) issuers.any? do |issuer| issuer.include?(name) end end |