NegotiateAuthentication.UnwrapInPlace Method
Definition
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, in place, an input message with signature or encryption applied by the other party.
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
Parameters
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
- Completed on success.
- MessageAltered if the message signature was invalid.
- InvalidToken if the wrapped message was in invalid format.
- Other NegotiateAuthenticationStatusCode values on failure.
Exceptions
Authentication failed or has not occurred.