[−][src]Struct sspi::builders::InitializeSecurityContext
A builder to execute one of the SSPI functions. Returned by the initialize_security_context
method.
Requirements for execution
These methods are required to be called before calling the execute
method
Fields
credentials_handle: Option<&'a mut CredsHandle>
context_requirements: ClientRequestFlags
target_data_representation: DataRepresentation
output: &'a mut [SecurityBuffer]
target_name: Option<&'a str>
input: Option<&'a mut [SecurityBuffer]>
Implementations
impl<'a, Inner: SspiImpl, CredsHandle, CredsHandleSet: ToAssign, ContextRequirementsSet: ToAssign, TargetDataRepresentationSet: ToAssign, OutputSet: ToAssign> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
[src]
pub fn with_credentials_handle(
self,
credentials_handle: &'a mut CredsHandle
) -> InitializeSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
[src]
self,
credentials_handle: &'a mut CredsHandle
) -> InitializeSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
Specifies a handle to the credentials returned by acquire_credentials_handle
. This handle is used
to build the security context. The builder requires at least CredentialUse::Outbound
credentials.
pub fn with_context_requirements(
self,
context_requirements: ClientRequestFlags
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
[src]
self,
context_requirements: ClientRequestFlags
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
Specifies bit flags that indicate requests for the context. Not all packages can support all requirements.
pub fn with_target_data_representation(
self,
target_data_representation: DataRepresentation
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
[src]
self,
target_data_representation: DataRepresentation
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
Specifies the data representation, such as byte ordering, on the target.
pub fn with_output(
self,
output: &'a mut [SecurityBuffer]
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
[src]
self,
output: &'a mut [SecurityBuffer]
) -> InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
Specifies a mutable reference to a buffer with SecurityBuffer
that receives the output data.
pub fn with_target_name(self, target_name: &'a str) -> Self
[src]
pub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self
[src]
Specifies a mutable reference to a buffer with SecurityBuffer
structures. Don't call this method on during
the first execution of the builder. On the second execution, this parameter is a reference to the partially
formed context returned during the first call.
impl<'a, Inner: SspiImpl<CredentialsHandle = CredsHandle>, CredsHandle> InitializeSecurityContext<'a, I, C, WithCredentialsHandle, WithContextRequirements, WithTargetDataRepresentation, WithOutput>
[src]
pub fn execute(self) -> Result<InitializeSecurityContextResult>
[src]
Executes the SSPI function that the builder represents.
Auto Trait Implementations
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> RefUnwindSafe for InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
ContextRequirementsSet: RefUnwindSafe,
CredsHandle: RefUnwindSafe,
CredsHandleSet: RefUnwindSafe,
Inner: RefUnwindSafe,
OutputSet: RefUnwindSafe,
TargetDataRepresentationSet: RefUnwindSafe,
ContextRequirementsSet: RefUnwindSafe,
CredsHandle: RefUnwindSafe,
CredsHandleSet: RefUnwindSafe,
Inner: RefUnwindSafe,
OutputSet: RefUnwindSafe,
TargetDataRepresentationSet: RefUnwindSafe,
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Send for InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
ContextRequirementsSet: Send,
CredsHandle: Send,
CredsHandleSet: Send,
Inner: Send,
OutputSet: Send,
TargetDataRepresentationSet: Send,
ContextRequirementsSet: Send,
CredsHandle: Send,
CredsHandleSet: Send,
Inner: Send,
OutputSet: Send,
TargetDataRepresentationSet: Send,
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Sync for InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
ContextRequirementsSet: Sync,
CredsHandle: Sync,
CredsHandleSet: Sync,
Inner: Sync,
OutputSet: Sync,
TargetDataRepresentationSet: Sync,
ContextRequirementsSet: Sync,
CredsHandle: Sync,
CredsHandleSet: Sync,
Inner: Sync,
OutputSet: Sync,
TargetDataRepresentationSet: Sync,
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Unpin for InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
ContextRequirementsSet: Unpin,
CredsHandleSet: Unpin,
OutputSet: Unpin,
TargetDataRepresentationSet: Unpin,
ContextRequirementsSet: Unpin,
CredsHandleSet: Unpin,
OutputSet: Unpin,
TargetDataRepresentationSet: Unpin,
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> !UnwindSafe for InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
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, 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>,