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§

source§

impl BufVault

source

pub fn new() -> Self

Trait Implementations§

source§

impl Default for BufVault

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Vault for BufVault

source§

fn id(&self) -> &str

source§

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 add(&mut self, ticket_info: TicketCred) -> Result<()>

Add a new ticket.
source§

fn dump(&self) -> Result<TicketCreds>

Retrieve all the tickets.
source§

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<()>

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<()>

Changes the support format to the one given.
source§

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>

Retrieves the TGSs used for impersonation in s4u2self, part of the constrained delegation.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T