[][src]Struct kerberos_ccache::Credential

pub struct Credential {
    pub client: Principal,
    pub server: Principal,
    pub key: KeyBlock,
    pub time: Times,
    pub is_skey: u8,
    pub tktflags: u32,
    pub addrs: Vec<Address>,
    pub authdata: Vec<AuthData>,
    pub ticket: CountedOctetString,
    pub second_ticket: CountedOctetString,
}

Represents a credential stored in ccache.

Definition

credential {
    principal client;
    principal server;
    keyblock key;
    times    time;
    uint8_t  is_skey; /* 1 if skey, 0 otherwise */
    uint32_t tktflags; /* stored in reversed byte order */
    uint32_t num_address;
    address  addrs[num_address];
    uint32_t num_authdata;
    authdata authdata[num_authdata];
    countet_octet_string ticket;
    countet_octet_string second_ticket;
};

Fields

client: Principalserver: Principalkey: KeyBlocktime: Timesis_skey: u8tktflags: u32addrs: Vec<Address>authdata: Vec<AuthData>ticket: CountedOctetStringsecond_ticket: CountedOctetString

Methods

impl Credential[src]

pub fn new(
    client: Principal,
    server: Principal,
    key: KeyBlock,
    time: Times,
    is_skey: u8,
    tktflags: u32,
    ticket: CountedOctetString
) -> Self
[src]

pub fn build(self) -> Vec<u8>[src]

Build the binary representation

pub fn parse(raw: &[u8]) -> IResult<&[u8], Self>[src]

Creates a new instance from the binary representation

Error

Returns error when the binary has not the expected format.

Trait Implementations

impl Clone for Credential[src]

impl Debug for Credential[src]

impl PartialEq<Credential> for Credential[src]

impl StructuralPartialEq for Credential[src]

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> 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.