NegotiateAuthentication.Unwrap 方法

定义

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

public:
 System::Net::Security::NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<System::Byte> input, System::Buffers::IBufferWriter<System::Byte> ^ outputWriter, [Runtime::InteropServices::Out] bool % wasEncrypted);
public System.Net.Security.NegotiateAuthenticationStatusCode Unwrap (ReadOnlySpan<byte> input, System.Buffers.IBufferWriter<byte> outputWriter, out bool wasEncrypted);
member this.Unwrap : ReadOnlySpan<byte> * System.Buffers.IBufferWriter<byte> * bool -> System.Net.Security.NegotiateAuthenticationStatusCode
Public Function Unwrap (input As ReadOnlySpan(Of Byte), outputWriter As IBufferWriter(Of Byte), ByRef wasEncrypted As Boolean) As NegotiateAuthenticationStatusCode

参数

input
ReadOnlySpan<Byte>

要解包的输入消息。

outputWriter
IBufferWriter<Byte>

写入未包装消息的缓冲区写入器。

wasEncrypted
Boolean

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

返回

例外

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

适用于