Enum age::ssh::Identity [−][src]
pub enum Identity {
Unencrypted(UnencryptedKey),
Encrypted(EncryptedKey),
Unsupported(UnsupportedKey),
}
This is supported on crate feature
ssh
only.Expand description
An SSH private key for decrypting an age file.
Variants
Unencrypted(UnencryptedKey)
An unencrypted key.
Encrypted(EncryptedKey)
Tuple Fields
0: EncryptedKey
An encrypted key.
Unsupported(UnsupportedKey)
Tuple Fields
A key that we know how to parse, but that we do not support.
Implementations
Parses one or more identities from a buffered input containing valid UTF-8.
filename
is the path to the file that the input is reading from, if any.
Wraps this identity with the provided callbacks, so that if this is an encrypted identity, it can potentially be decrypted.
Trait Implementations
Performs the conversion.
Performs the conversion.