Share via


NegotiateAuthentication.UnwrapInPlace 方法

定义

使用另一方应用的签名或加密就地解包输入消息。

public:
 System::Net::Security::NegotiateAuthenticationStatusCode UnwrapInPlace(Span<System::Byte> input, [Runtime::InteropServices::Out] int % unwrappedOffset, [Runtime::InteropServices::Out] int % unwrappedLength, [Runtime::InteropServices::Out] bool % wasEncrypted);
public System.Net.Security.NegotiateAuthenticationStatusCode UnwrapInPlace (Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted);
member this.UnwrapInPlace : Span<byte> * int * int * bool -> System.Net.Security.NegotiateAuthenticationStatusCode
Public Function UnwrapInPlace (input As Span(Of Byte), ByRef unwrappedOffset As Integer, ByRef unwrappedLength As Integer, ByRef wasEncrypted As Boolean) As NegotiateAuthenticationStatusCode

参数

input
Span<Byte>

要取消包装的输入消息。 此方法返回时,包含已解码的数据。

unwrappedOffset
Int32

此方法返回时,包含写入未包装消息的输入缓冲区中的偏移量。

unwrappedLength
Int32

此方法返回时,包含未包装的消息的长度。

wasEncrypted
Boolean

此方法返回时,包含一个值,该值指定包装的消息是否应用了加密。

返回

例外

身份验证失败或没有进行身份验证。

适用于