Class: Net::SSH::KeyFactory::OpenSSHPrivateKeyType

Inherits:
KeyType
  • Object
show all
Defined in:
lib/net/ssh/key_factory.rb

Class Method Summary collapse

Class Method Details

.encrypted_key?(key_data, decode_error) ⇒ Boolean

Returns:

  • (Boolean)


131
132
133
# File 'lib/net/ssh/key_factory.rb', line 131

def self.encrypted_key?(key_data, decode_error)
  decode_error.is_a?(Net::SSH::Authentication::ED25519::OpenSSHPrivateKeyLoader::DecryptError) && decode_error.encrypted_key?
end

.error_classesObject



127
128
129
# File 'lib/net/ssh/key_factory.rb', line 127

def self.error_classes
  [Net::SSH::Authentication::ED25519::OpenSSHPrivateKeyLoader::DecryptError]
end

.read(key_data, passphrase) ⇒ Object



123
124
125
# File 'lib/net/ssh/key_factory.rb', line 123

def self.read(key_data, passphrase)
  Net::SSH::Authentication::ED25519::OpenSSHPrivateKeyLoader.read(key_data, passphrase)
end