NegotiateAuthentication.Unwrap Method (System.Net.Security) (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Unwraps an input message with signature or encryption applied by the other party.

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

Parameters

outputWriter

IBufferWriter<Byte>

Buffer writter where the unwrapped message is written.

wasEncrypted

Boolean

When this method returns, contains a value that indicates whether the wrapped message had encryption applied.

Returns

Exceptions

Authentication failed or has not occurred.

Applies to