[−][src]Struct kerberos_ccache::Credential
Represents a credential stored in ccache.
Definition
credential {
principal client;
principal server;
keyblock key;
times time;
uint8_t is_skey; /* 1 if skey, 0 otherwise */
uint32_t tktflags; /* stored in reversed byte order */
uint32_t num_address;
address addrs[num_address];
uint32_t num_authdata;
authdata authdata[num_authdata];
countet_octet_string ticket;
countet_octet_string second_ticket;
};
Fields
client: Principal
server: Principal
key: KeyBlock
time: Times
is_skey: u8
tktflags: u32
addrs: Vec<Address>
authdata: Vec<AuthData>
ticket: CountedOctetString
second_ticket: CountedOctetString
Methods
impl Credential
[src]
pub fn new(
client: Principal,
server: Principal,
key: KeyBlock,
time: Times,
is_skey: u8,
tktflags: u32,
ticket: CountedOctetString
) -> Self
[src]
client: Principal,
server: Principal,
key: KeyBlock,
time: Times,
is_skey: u8,
tktflags: u32,
ticket: CountedOctetString
) -> Self
pub fn build(self) -> Vec<u8>
[src]
Build the binary representation
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.
Trait Implementations
impl Clone for Credential
[src]
fn clone(&self) -> Credential
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Credential
[src]
impl PartialEq<Credential> for Credential
[src]
fn eq(&self, other: &Credential) -> bool
[src]
fn ne(&self, other: &Credential) -> bool
[src]
impl StructuralPartialEq for Credential
[src]
Auto Trait Implementations
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,