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)

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

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


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

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

.read(key_data, passphrase) ⇒ Object


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

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