Class: Acme::Client::ChainIdentifier

Inherits:
Object
  • Object
show all
Defined in:
lib/acme/client/chain_identifier.rb

Instance Method Summary collapse

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

Returns:

  • (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