Class: Net::SSH::KeyFactory::OpenSSLPKeyType

Inherits:
OpenSSLKeyTypeBase show all
Defined in:
lib/net/ssh/key_factory.rb

Class Method Summary collapse

Methods inherited from OpenSSLKeyTypeBase

encrypted_key?

Methods inherited from KeyType

encrypted_key?

Class Method Details

.error_classesObject


160
161
162
# File 'lib/net/ssh/key_factory.rb', line 160

def self.error_classes
  [ArgumentError, OpenSSL::PKey::PKeyError]
end

.open_ssl_classObject


156
157
158
# File 'lib/net/ssh/key_factory.rb', line 156

def self.open_ssl_class
  OpenSSL::PKey
end

.read(key_data, passphrase) ⇒ Object


152
153
154
# File 'lib/net/ssh/key_factory.rb', line 152

def self.read(key_data, passphrase)
  open_ssl_class.read(key_data, passphrase)
end