[][src]Struct kerbeiros::types::asn1::KdcRep

pub struct KdcRep {
    pub pvno: i8,
    pub msg_type: i8,
    pub padata: Option<SeqOfPaData>,
    pub crealm: Realm,
    pub cname: PrincipalName,
    pub ticket: Ticket,
    pub enc_part: EncryptedData,
}

(KDC-REP) Main structure of the AS-REP and TGS-REP messages.

Fields

pvno: i8msg_type: i8padata: Option<SeqOfPaData>crealm: Realmcname: PrincipalNameticket: Ticketenc_part: EncryptedData

Methods

impl KdcRep[src]

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

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

pub fn into_credential(self, user_key: &Key) -> Result<Credential>[src]

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

Trait Implementations

impl Clone for KdcRep[src]

impl Debug for KdcRep[src]

impl PartialEq<KdcRep> for KdcRep[src]

impl StructuralPartialEq for KdcRep[src]

Auto Trait Implementations

impl RefUnwindSafe for KdcRep

impl Send for KdcRep

impl Sync for KdcRep

impl Unpin for KdcRep

impl UnwindSafe for KdcRep

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.