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

pub struct EncKdcRepPart {
    pub key: EncryptionKey,
    pub last_req: LastReq,
    pub nonce: UInt32,
    pub key_expiration: Option<KerberosTime>,
    pub flags: TicketFlags,
    pub authtime: KerberosTime,
    pub starttime: Option<KerberosTime>,
    pub endtime: KerberosTime,
    pub renew_till: Option<KerberosTime>,
    pub srealm: Realm,
    pub sname: PrincipalName,
    pub caddr: Option<HostAddresses>,
    pub encrypted_pa_data: Option<MethodData>,
}

(EncKdcRepPart) Holds the data that is encrypted in KdcRep

EncASRepPart    ::= [APPLICATION 25] EncKDCRepPart
EncKDCRepPart   ::= SEQUENCE {
       key             [0] EncryptionKey,
       last-req        [1] LastReq,
       nonce           [2] UInt32,
       key-expiration  [3] KerberosTime OPTIONAL,
       flags           [4] TicketFlags,
       authtime        [5] KerberosTime,
       starttime       [6] KerberosTime OPTIONAL,
       endtime         [7] KerberosTime,
       renew-till      [8] KerberosTime OPTIONAL,
       srealm          [9] Realm,
       sname           [10] PrincipalName,
       caddr           [11] HostAddresses OPTIONAL
}

Fields

key: EncryptionKeylast_req: LastReqnonce: UInt32key_expiration: Option<KerberosTime>flags: TicketFlagsauthtime: KerberosTimestarttime: Option<KerberosTime>endtime: KerberosTimerenew_till: Option<KerberosTime>srealm: Realmsname: PrincipalNamecaddr: Option<HostAddresses>encrypted_pa_data: Option<MethodData>

Methods

impl EncKdcRepPart[src]

pub fn new(
    key: EncryptionKey,
    last_req: LastReq,
    nonce: UInt32,
    flags: TicketFlags,
    authtime: KerberosTime,
    endtime: KerberosTime,
    srealm: Realm,
    sname: PrincipalName
) -> Self
[src]

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

Trait Implementations

impl Clone for EncKdcRepPart[src]

impl Debug for EncKdcRepPart[src]

impl PartialEq<EncKdcRepPart> for EncKdcRepPart[src]

impl StructuralPartialEq for EncKdcRepPart[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> 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.