Struct sspi::builders::AcquireCredentialsHandle
source · [−]pub struct AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
Inner: SspiImpl,
CredentialUseSet: ToAssign, {
pub credential_use: CredentialUse,
pub principal_name: Option<&'a str>,
pub logon_id: Option<u64>,
pub auth_data: Option<&'a AuthData>,
/* private fields */
}
Expand description
A builder to execute one of the SSPI functions. Returned by the acquire_credentials_handle
method.
Requirements for execution
These methods are required to be called before calling the execute
method
Fields
credential_use: CredentialUse
principal_name: Option<&'a str>
logon_id: Option<u64>
auth_data: Option<&'a AuthData>
Implementations
sourceimpl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
Inner: SspiImpl<CredentialsHandle = CredsHandle, AuthenticationData = AuthData>,
CredentialUseSet: ToAssign,
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
Inner: SspiImpl<CredentialsHandle = CredsHandle, AuthenticationData = AuthData>,
CredentialUseSet: ToAssign,
sourcepub fn with_credential_use(
self,
credential_use: CredentialUse
) -> AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, WithCredentialUse>
pub fn with_credential_use(
self,
credential_use: CredentialUse
) -> AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, WithCredentialUse>
Specifies a flag that indicates how these credentials will be used.
sourcepub fn with_principal_name(self, principal_name: &'a str) -> Self
pub fn with_principal_name(self, principal_name: &'a str) -> Self
Specifies a string that specifies the name of the principal whose credentials the handle will reference.
sourcepub fn with_logon_id(self, logon_id: u64) -> Self
pub fn with_logon_id(self, logon_id: u64) -> Self
Specifies a LUID that identifies the user. This parameter is provided for file-system processes such as network redirectors.
sourcepub fn with_auth_data(self, auth_data: &'a AuthData) -> Self
pub fn with_auth_data(self, auth_data: &'a AuthData) -> Self
Specifies a reference to the structure that specifies authentication data for both Schannel and Negotiate packages.
sourceimpl<'a, Inner, CredsHandle, AuthData> AcquireCredentialsHandle<'a, I, C, A, WithCredentialUse> where
Inner: SspiImpl<CredentialsHandle = CredsHandle, AuthenticationData = AuthData>,
impl<'a, Inner, CredsHandle, AuthData> AcquireCredentialsHandle<'a, I, C, A, WithCredentialUse> where
Inner: SspiImpl<CredentialsHandle = CredsHandle, AuthenticationData = AuthData>,
sourcepub fn execute(self) -> Result<AcquireCredentialsHandleResult<CredsHandle>>
pub fn execute(self) -> Result<AcquireCredentialsHandleResult<CredsHandle>>
Executes the SSPI function that the builder represents.
Trait Implementations
Auto Trait Implementations
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> RefUnwindSafe for AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
AuthData: RefUnwindSafe,
CredentialUseSet: RefUnwindSafe,
CredsHandle: RefUnwindSafe,
Inner: RefUnwindSafe,
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> Send for AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
AuthData: Sync,
CredentialUseSet: Send,
CredsHandle: Send,
Inner: Send,
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> Sync for AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
AuthData: Sync,
CredentialUseSet: Sync,
CredsHandle: Sync,
Inner: Sync,
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> Unpin for AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet> where
CredentialUseSet: Unpin,
CredsHandle: Unpin,
impl<'a, Inner, CredsHandle, AuthData, CredentialUseSet> !UnwindSafe for AcquireCredentialsHandle<'a, Inner, CredsHandle, AuthData, CredentialUseSet>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more