Exception: SSLTool::KeyHelper::KeyNotFoundError

Inherits:
KeyHelperError show all
Defined in:
lib/ssltool/key_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cert, keys) ⇒ KeyNotFoundError

Returns a new instance of KeyNotFoundError.



17
18
19
20
# File 'lib/ssltool/key_helper.rb', line 17

def initialize(cert, keys)
  @cert, @keys = cert, keys
  super("None of the given #{keys.length} keys match the certificate #{cert.subject}.")
end

Instance Attribute Details

#certObject (readonly)

Returns the value of attribute cert.



16
17
18
# File 'lib/ssltool/key_helper.rb', line 16

def cert
  @cert
end

#keysObject (readonly)

Returns the value of attribute keys.



16
17
18
# File 'lib/ssltool/key_helper.rb', line 16

def keys
  @keys
end