NegotiateAuthentication.UnwrapInPlace Method

Definition

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

C#
public System.Net.Security.NegotiateAuthenticationStatusCode UnwrapInPlace(Span<byte> input, out int unwrappedOffset, out int unwrappedLength, out bool wasEncrypted);

Parameters

input
Span<Byte>

The input message to be unwrapped. When this method returns, contains the decoded data.

unwrappedOffset
Int32

When this method returns, contains the offset in the input buffer where the unwrapped message was written.

unwrappedLength
Int32

When this method returns, contains the length of the unwrapped message.

wasEncrypted
Boolean

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

Returns

Exceptions

Authentication failed or has not occurred.

Applies to

Product Versions
.NET 7, 8, 9