Struct cerbero_lib::Ticket
source · pub struct Ticket {
pub tkt_vno: i32,
pub realm: String,
pub sname: PrincipalName,
pub enc_part: EncryptedData,
}Expand description
(Ticket) Represents a Kerberos ticket.
Ticket ::= [APPLICATION 1] SEQUENCE {
tkt-vno [0] INTEGER (5),
realm [1] Realm,
sname [2] PrincipalName,
enc-part [3] EncryptedData -- EncTicketPart
}
Fields§
§tkt_vno: i32§realm: String§sname: PrincipalName§enc_part: EncryptedDataImplementations§
source§impl Ticket
impl Ticket
pub fn new( realm: String, sname: PrincipalName, enc_part: EncryptedData, ) -> Ticket
Trait Implementations§
source§impl Asn1Object for Ticket
impl Asn1Object for Ticket
source§fn tag() -> Tag
fn tag() -> Tag
Method to retrieve the tag of the object, used to identify each object in ASN1
source§fn build(&self) -> Vec<u8> ⓘ
fn build(&self) -> Vec<u8> ⓘ
To encode the object to DER, generally does not need to be overwritten.
Usually, just encode_value should be overwritten
source§impl PartialEq for Ticket
impl PartialEq for Ticket
impl StructuralPartialEq for Ticket
Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnwindSafe for Ticket
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more