語言

NegotiateAuthentication.Wrap 方法

定義

以簽章封裝輸入訊息,並可選擇加密。

public:
 System::Net::Security::NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<System::Byte> input, System::Buffers::IBufferWriter<System::Byte> ^ outputWriter, bool requestEncryption, [Runtime::InteropServices::Out] bool % isEncrypted);
public System.Net.Security.NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, System.Buffers.IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted);
member this.Wrap : ReadOnlySpan<byte> * System.Buffers.IBufferWriter<byte> * bool * bool -> System.Net.Security.NegotiateAuthenticationStatusCode
Public Function Wrap (input As ReadOnlySpan(Of Byte), outputWriter As IBufferWriter(Of Byte), requestEncryption As Boolean, ByRef isEncrypted As Boolean) As NegotiateAuthenticationStatusCode

參數

input
ReadOnlySpan<Byte>

輸入訊息將被包裝。

outputWriter
IBufferWriter<Byte>

Buffer Writter,寫入包裹訊息的地方。

requestEncryption
Boolean

true請求加密;否則,。 false

isEncrypted
Boolean

當此方法回傳時,包含一個表示是否在包裝過程中施加加密的值。

傳回

Completed 關於成功,或是其他 NegotiateAuthenticationStatusCode 價值對失敗的評價。

例外狀況

驗證失敗或未完成。

備註

與 GSS_Wrap API 類似,認證協定實作可選擇覆蓋 requestEncryption 參數中的請求值。 這可能導致保護等級被降級或升級。

適用於