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
Buffer writter where the unwrapped message is written.
wasEncrypted
When this method returns, contains a value that indicates 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.