[][src]Struct sspi::builders::InitializeSecurityContext

pub struct InitializeSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    Inner: SspiImpl,
    CredsHandleSet: ToAssign,
    ContextRequirementsSet: ToAssign,
    TargetDataRepresentationSet: ToAssign,
    OutputSet: ToAssign
{ pub credentials_handle: Option<&'a mut CredsHandle>, pub context_requirements: ClientRequestFlags, pub target_data_representation: DataRepresentation, pub output: &'a mut [SecurityBuffer], pub target_name: Option<&'a str>, pub input: Option<&'a mut [SecurityBuffer]>, // some fields omitted }

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: ClientRequestFlagstarget_data_representation: DataRepresentationoutput: &'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]

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]

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]

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]

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

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

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

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

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.