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



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

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

.open_ssl_classObject



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

def self.open_ssl_class
  OpenSSL::PKey
end

.read(key_data, passphrase) ⇒ Object



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

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