NegotiateAuthentication.Unwrap 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 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
- input
- ReadOnlySpan<Byte>
Input message to be unwrapped.
- 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
- 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.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.