pub struct Identity<R: Read, C: Callbacks> { /* private fields */ }
Expand description

An encrypted age identity file.

Implementations

Parses an encrypted identity from an input containing valid UTF-8.

filename is the path to the file that the input is reading from, if any.

Returns Ok(None) if the input contains an age ciphertext that is not encrypted to a passphrase.

Returns the recipients contained within this encrypted identity.

If this encrypted identity has not been decrypted yet, calling this method will trigger a passphrase request.

Trait Implementations

Attempts to unwrap the given stanza with this identity. Read more

Attempts to unwrap any of the given stanzas, which are assumed to come from the same age file header, and therefore contain the same file key. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.