[][src]Struct kerberos_keytab::KeytabEntry

pub struct KeytabEntry {
    pub realm: CountedOctetString,
    pub components: Vec<CountedOctetString>,
    pub name_type: u32,
    pub timestamp: u32,
    pub vno8: u8,
    pub key: KeyBlock,
    pub vno: Option<u32>,
}

Definition:

keytab_entry {
    int32_t size;
    uint16_t num_components;    /* sub 1 if version 0x501 */
    counted_octet_string realm;
    counted_octet_string components[num_components];
    uint32_t name_type;   /* not present if version 0x501 */
    uint32_t timestamp;
    uint8_t vno8;
    keyblock key;
    uint32_t vno; /* only present if >= 4 bytes left in entry */
}

Fields

realm: CountedOctetStringcomponents: Vec<CountedOctetString>name_type: u32timestamp: u32vno8: u8key: KeyBlockvno: Option<u32>

Implementations

impl KeytabEntry[src]

pub fn new(
    realm: CountedOctetString,
    components: Vec<CountedOctetString>,
    name_type: u32,
    timestamp: u32,
    vno8: u8,
    key: KeyBlock,
    vno: Option<u32>
) -> Self
[src]

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.

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

Build the binary representation

Trait Implementations

impl Clone for KeytabEntry[src]

impl Debug for KeytabEntry[src]

impl Default for KeytabEntry[src]

impl PartialEq<KeytabEntry> for KeytabEntry[src]

impl StructuralPartialEq for KeytabEntry[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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.