Struct sspi::builders::AcceptSecurityContext
source · [−]pub struct AcceptSecurityContext<'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: ServerRequestFlags,
pub target_data_representation: DataRepresentation,
pub output: &'a mut [SecurityBuffer],
pub input: Option<&'a mut [SecurityBuffer]>,
/* private fields */
}
Expand description
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
sourceimpl<'a, Inner: SspiImpl, CredsHandle, CredsHandleSet: ToAssign, ContextRequirementsSet: ToAssign, TargetDataRepresentationSet: ToAssign, OutputSet: ToAssign> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
impl<'a, Inner: SspiImpl, CredsHandle, CredsHandleSet: ToAssign, ContextRequirementsSet: ToAssign, TargetDataRepresentationSet: ToAssign, OutputSet: ToAssign> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
sourcepub fn with_credentials_handle(
self,
credentials_handle: &'a mut CredsHandle
) -> AcceptSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
pub fn with_credentials_handle(
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.
sourcepub fn with_context_requirements(
self,
context_requirements: ServerRequestFlags
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
pub fn with_context_requirements(
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.
sourcepub fn with_target_data_representation(
self,
target_data_representation: DataRepresentation
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
pub fn with_target_data_representation(
self,
target_data_representation: DataRepresentation
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
Specifies the data representation, such as byte ordering, on the target.
sourcepub fn with_output(
self,
output: &'a mut [SecurityBuffer]
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
pub fn with_output(
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.
sourcepub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self
pub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self
Specifies a mutable reference to a SecurityBuffer
generated by a client call to initialize_security_context
.
The structure contains the input buffer descriptor.
sourceimpl<'a, Inner: SspiImpl<CredentialsHandle = CredsHandle>, CredsHandle> AcceptSecurityContext<'a, I, C, WithCredentialsHandle, WithContextRequirements, WithTargetDataRepresentation, WithOutput>
impl<'a, Inner: SspiImpl<CredentialsHandle = CredsHandle>, CredsHandle> AcceptSecurityContext<'a, I, C, WithCredentialsHandle, WithContextRequirements, WithTargetDataRepresentation, WithOutput>
sourcepub fn execute(self) -> Result<AcceptSecurityContextResult>
pub fn execute(self) -> Result<AcceptSecurityContextResult>
Executes the SSPI function that the builder represents.
Trait Implementations
sourceimpl<'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,
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,
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,
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,
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,
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,
impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> !UnwindSafe for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
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