[−][src]Trait tink_core::keyset::Reader
Reader
knows how to read a Keyset
or an
EncryptedKeyset
from some source. In order to turn a Reader
into a keyset::Handle
for use, callers must use
insecure::new_handle
or
Handle::read
(with encryption).
Required methods
fn read(&mut self) -> Result<Keyset, TinkError>
Return a (cleartext) Keyset
object from the underlying source.
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
Return an EncryptedKeyset
object from the underlying source.
Implementors
impl Reader for MemReaderWriter
[src]
fn read(&mut self) -> Result<Keyset, TinkError>
[src]
Return Keyset
from memory.
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
[src]
Return EncryptedKeyset
from memory.
impl<T: Read> Reader for BinaryReader<T>
[src]
fn read(&mut self) -> Result<Keyset, TinkError>
[src]
Return a (cleartext) Keyset
object from the underlying
std::io::Read
.
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
[src]
Return an EncryptedKeyset
object from the underlying
std::io::Read
.
impl<T: Read> Reader for JsonReader<T>
[src]
fn read(&mut self) -> Result<Keyset, TinkError>
[src]
Return a (cleartext) Keyset
object from the underlying
std::io::Read
.
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
[src]
Return an EncryptedKeyset
object from the underlying
std::io::Read
.