[][src]Struct kerbeiros::credentials::Credential

pub struct Credential { /* fields omitted */ }

Represents a Kerberos credential, which includes one Ticket and session information.

Session information includes data such as session key, client name, realm, ticket flags and ticket expiration time.

It can be saved converted and save into Windows or Linux credential formats.

Methods

impl Credential[src]

pub fn new(
    crealm: Realm,
    cname: PrincipalName,
    ticket: Ticket,
    client_part: EncKdcRepPart
) -> Self
[src]

pub fn crealm(&self) -> &Realm[src]

pub fn cname(&self) -> &PrincipalName[src]

pub fn ticket(&self) -> &Ticket[src]

pub fn authtime(&self) -> &KerberosTime[src]

pub fn starttime(&self) -> Option<&KerberosTime>[src]

pub fn endtime(&self) -> &KerberosTime[src]

pub fn renew_till(&self) -> Option<&KerberosTime>[src]

pub fn flags(&self) -> &TicketFlags[src]

pub fn key(&self) -> &EncryptionKey[src]

pub fn srealm(&self) -> &KerberosString[src]

pub fn sname(&self) -> &PrincipalName[src]

pub fn caddr(&self) -> Option<&HostAddresses>[src]

pub fn encrypted_pa_data(&self) -> Option<&MethodData>[src]

pub fn save_into_ccache_file(self, path: &str) -> Result<()>[src]

Saves the credential into a file by using the ccache format, used by Linux.

pub fn save_into_krb_cred_file(self, path: &str) -> Result<()>[src]

Saves the credential into a file by using the KRB-CRED format, used by Windows.

Trait Implementations

impl Clone for Credential[src]

impl Debug for Credential[src]

impl From<Credential> for CredentialWarehouse[src]

impl Into<Credential> for Credential[src]

impl PartialEq<Credential> for Credential[src]

impl StructuralPartialEq for Credential[src]

impl TryFrom<Credential> for Credential[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.