Struct cerbero_lib::BufVault
source · pub struct BufVault { /* private fields */ }Expand description
Vault that exists entirely in memory, for when you can’t or don’t want to touch disk
Implementations§
Trait Implementations§
source§impl Vault for BufVault
impl Vault for BufVault
fn id(&self) -> &str
source§fn support_cred_format(&self) -> Result<Option<CredFormat>>
fn support_cred_format(&self) -> Result<Option<CredFormat>>
Returns the format used to store credentials in the vault support. It
can be ccache or krb.
source§fn dump(&self) -> Result<TicketCreds>
fn dump(&self) -> Result<TicketCreds>
Retrieve all the tickets.
source§fn save(&self, tickets: TicketCreds) -> Result<()>
fn save(&self, tickets: TicketCreds) -> Result<()>
Saves the given tickets into the vault. The rest of the tickets are
destroyed.
source§fn save_as(&self, tickets: TicketCreds, cred_format: CredFormat) -> Result<()>
fn save_as(&self, tickets: TicketCreds, cred_format: CredFormat) -> Result<()>
Saves the given tickets in the given format, if possible. The rest
of the tickets are destroyed.
source§fn change_format(&self, cred_format: CredFormat) -> Result<()>
fn change_format(&self, cred_format: CredFormat) -> Result<()>
Changes the support format to the one given.
source§fn get_user_tgts(&self, user: &KrbUser) -> Result<TicketCreds>
fn get_user_tgts(&self, user: &KrbUser) -> Result<TicketCreds>
Retrieves the user TGTs (if many) for the user domain.
source§fn s4u2self_tgss(
&self,
user: &KrbUser,
impersonate_user: &KrbUser,
user_service: Option<&String>,
) -> Result<TicketCreds>
fn s4u2self_tgss( &self, user: &KrbUser, impersonate_user: &KrbUser, user_service: Option<&String>, ) -> Result<TicketCreds>
Retrieves the TGSs used for impersonation in s4u2self, part of the
constrained delegation.
Auto Trait Implementations§
impl !Freeze for BufVault
impl !RefUnwindSafe for BufVault
impl Send for BufVault
impl !Sync for BufVault
impl Unpin for BufVault
impl UnwindSafe for BufVault
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more