[−][src]Struct kerbeiros::credentials::Credential
Represents a Kerberos credential, which includes one Ticket and session information.
Session information includes data such as session key, client name, realm, ticket flags and ticket expiration time.
It can be saved converted and save into Windows or Linux credential formats.
Methods
impl Credential
[src]
pub fn new(
crealm: Realm,
cname: PrincipalName,
ticket: Ticket,
client_part: EncKdcRepPart
) -> Self
[src]
crealm: Realm,
cname: PrincipalName,
ticket: Ticket,
client_part: EncKdcRepPart
) -> Self
pub fn crealm(&self) -> &Realm
[src]
pub fn cname(&self) -> &PrincipalName
[src]
pub fn ticket(&self) -> &Ticket
[src]
pub fn authtime(&self) -> &KerberosTime
[src]
pub fn starttime(&self) -> Option<&KerberosTime>
[src]
pub fn endtime(&self) -> &KerberosTime
[src]
pub fn renew_till(&self) -> Option<&KerberosTime>
[src]
pub fn flags(&self) -> &TicketFlags
[src]
pub fn key(&self) -> &EncryptionKey
[src]
pub fn srealm(&self) -> &KerberosString
[src]
pub fn sname(&self) -> &PrincipalName
[src]
pub fn caddr(&self) -> Option<&HostAddresses>
[src]
pub fn encrypted_pa_data(&self) -> Option<&MethodData>
[src]
pub fn save_into_ccache_file(self, path: &str) -> Result<()>
[src]
Saves the credential into a file by using the ccache format, used by Linux.
pub fn save_into_krb_cred_file(self, path: &str) -> Result<()>
[src]
Saves the credential into a file by using the KRB-CRED format, used by Windows.
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 From<Credential> for CredentialWarehouse
[src]
fn from(credential: Credential) -> Self
[src]
impl Into<Credential> for Credential
[src]
fn into(self) -> CredentialEntry
[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]
impl TryFrom<Credential> 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> Same<T> for T
type Output = T
Should always be Self
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>,