Struct KdcReqBody

Source
pub struct KdcReqBody<'a> {
    pub kdc_options: BitString<'a>,
    pub cname: Option<PrincipalName>,
    pub realm: Realm,
    pub sname: Option<PrincipalName>,
    pub from: Option<GeneralizedTime>,
    pub till: GeneralizedTime,
    pub rtime: Option<GeneralizedTime>,
    pub nonce: u32,
    pub etype: Vec<EncryptionType>,
    pub addresses: Vec<HostAddress<'a>>,
    pub enc_authorization_data: Option<EncryptedData<'a>>,
    pub additional_tickets: Vec<Ticket<'a>>,
}
Expand description

Key Distribution Center (KDC) Request Message Body

Fields§

§kdc_options: BitString<'a>

Options requested by the client

§cname: Option<PrincipalName>

Client name (only for AS-REQ)

§realm: Realm

Server’s realm

§sname: Option<PrincipalName>

Server name

§from: Option<GeneralizedTime>

Desired starttime for the requested ticket

§till: GeneralizedTime

Expiration date requested by the client

§rtime: Option<GeneralizedTime>

Requested renew-till time

§nonce: u32

Random number generated by the client

§etype: Vec<EncryptionType>

Desired encryption algorithm to be used in the response

§addresses: Vec<HostAddress<'a>>

Addresses from which the requested ticket is to be valid

§enc_authorization_data: Option<EncryptedData<'a>>

Encoding of the desired authorization-data encrypted under the sub-session key if present in the Authenticator, or alternatively from the session key in the TGT

§additional_tickets: Vec<Ticket<'a>>

Additional tickets MAY be optionally included in a request to the ticket-granting server

Trait Implementations§

Source§

impl<'a> Debug for KdcReqBody<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FromDer<'a> for KdcReqBody<'a>

Parse the body of a Kerberos KDC Request

KDC-REQ-BODY    ::= SEQUENCE {
        kdc-options             [0] KDCOptions,
        cname                   [1] PrincipalName OPTIONAL
                                    -- Used only in AS-REQ --,
        realm                   [2] Realm
                                    -- Server's realm
                                    -- Also client's in AS-REQ --,
        sname                   [3] PrincipalName OPTIONAL,
        from                    [4] KerberosTime OPTIONAL,
        till                    [5] KerberosTime,
        rtime                   [6] KerberosTime OPTIONAL,
        nonce                   [7] UInt32,
        etype                   [8] SEQUENCE OF Int32 -- EncryptionType
                                    -- in preference order --,
        addresses               [9] HostAddresses OPTIONAL,
        enc-authorization-data  [10] EncryptedData OPTIONAL
                                    -- AuthorizationData --,
        additional-tickets      [11] SEQUENCE OF Ticket OPTIONAL
                                       -- NOTE: not empty
}
Source§

fn from_der(bytes: &'a [u8]) -> ParseResult<'a, Self, Error>

Attempt to parse input bytes into a DER object (enforcing constraints)
Source§

impl<'a> PartialEq for KdcReqBody<'a>

Source§

fn eq(&self, other: &KdcReqBody<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for KdcReqBody<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for KdcReqBody<'a>

§

impl<'a> RefUnwindSafe for KdcReqBody<'a>

§

impl<'a> Send for KdcReqBody<'a>

§

impl<'a> Sync for KdcReqBody<'a>

§

impl<'a> Unpin for KdcReqBody<'a>

§

impl<'a> UnwindSafe for KdcReqBody<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.