class Net::SSH::KeyFactory::OpenSSLKeyTypeBase

Public Class Methods

encrypted_key?(key_data, error) click to toggle source
# File lib/net/ssh/key_factory.rb, line 146
def self.encrypted_key?(key_data, error)
  key_data.match(/ENCRYPTED/)
end
open_ssl_class() click to toggle source
# File lib/net/ssh/key_factory.rb, line 138
def self.open_ssl_class
  raise Exception, "TODO: subclasses should implement"
end
read(key_data, passphrase) click to toggle source
# File lib/net/ssh/key_factory.rb, line 142
def self.read(key_data, passphrase)
  open_ssl_class.new(key_data, passphrase)
end