[−][src]Struct sspi::builders::AcceptSecurityContext
A builder to execute one of the SSPI functions. Returned by the accept_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: ServerRequestFlags
target_data_representation: DataRepresentation
output: &'a mut [SecurityBuffer]
input: Option<&'a mut [SecurityBuffer]>
Implementations
impl<'a, Inner: SspiImpl, CredsHandle, CredsHandleSet: ToAssign, ContextRequirementsSet: ToAssign, TargetDataRepresentationSet: ToAssign, OutputSet: ToAssign> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
[src]
pub fn with_credentials_handle(
self,
credentials_handle: &'a mut CredsHandle
) -> AcceptSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
[src]
self,
credentials_handle: &'a mut CredsHandle
) -> AcceptSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
Specifies the server credentials. To retrieve this handle, the server calls the acquire_credentials_handle
method with either the CredentialUse::Inbound
or CredentialUse::Outbound
flag set.
pub fn with_context_requirements(
self,
context_requirements: ServerRequestFlags
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
[src]
self,
context_requirements: ServerRequestFlags
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
Specifies bit flags that specify the attributes required by the server to establish the context.
pub fn with_target_data_representation(
self,
target_data_representation: DataRepresentation
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
[src]
self,
target_data_representation: DataRepresentation
) -> AcceptSecurityContext<'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]
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
[src]
self,
output: &'a mut [SecurityBuffer]
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
Specifies a mutable reference to a buffer with SecurityBuffer
that contains the output buffer descriptor.
This buffer is sent to the client for input into additional calls to initialize_security_context
. An output
buffer may be generated even if the function returns SecurityStatus::Ok
. Any buffer generated must be sent
back to the client application.
pub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self
[src]
Specifies a mutable reference to a SecurityBuffer
generated by a client call to initialize_security_context
.
The structure contains the input buffer descriptor.
impl<'a, Inner: SspiImpl<CredentialsHandle = CredsHandle>, CredsHandle> AcceptSecurityContext<'a, I, C, WithCredentialsHandle, WithContextRequirements, WithTargetDataRepresentation, WithOutput>
[src]
pub fn execute(self) -> Result<AcceptSecurityContextResult>
[src]
Executes the SSPI function that the builder represents.
Trait Implementations
impl<'a, Inner: Debug, CredsHandle: Debug, CredsHandleSet: Debug, ContextRequirementsSet: Debug, TargetDataRepresentationSet: Debug, OutputSet: Debug> Debug for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
Inner: SspiImpl,
CredsHandleSet: ToAssign,
ContextRequirementsSet: ToAssign,
TargetDataRepresentationSet: ToAssign,
OutputSet: ToAssign,
[src]
Inner: SspiImpl,
CredsHandleSet: ToAssign,
ContextRequirementsSet: ToAssign,
TargetDataRepresentationSet: ToAssign,
OutputSet: ToAssign,
Auto Trait Implementations
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> RefUnwindSafe for AcceptSecurityContext<'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 AcceptSecurityContext<'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 AcceptSecurityContext<'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 AcceptSecurityContext<'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 AcceptSecurityContext<'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>,