Class: Net::SSH::KeyFactory::OpenSSHPrivateKeyType
- Defined in:
- lib/net/ssh/key_factory.rb
Class Method Summary collapse
- .encrypted_key?(key_data, decode_error) ⇒ Boolean
- .error_classes ⇒ Object
- .read(key_data, passphrase) ⇒ Object
Class Method Details
.encrypted_key?(key_data, decode_error) ⇒ 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_classes ⇒ Object
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 |