AuthenticationLevel 列挙体
アセンブリ: System.Management (system.management.dll 内)

Public Enumeration AuthenticationLevel

メンバ名 | 説明 | |
---|---|---|
Call | 呼び出しレベルの COM 認証。 | |
Connect | 接続レベルの COM 認証。 | |
Default | 既定の COM 認証レベル。WMI は、既定の Windows 認証設定を使用します。 | |
None | COM 認証なし。 | |
Packet | パケット レベルの COM 認証。 | |
PacketIntegrity | パケット整合性レベルの COM 認証。 | |
PacketPrivacy | パケット プライバシ レベルの COM 認証。 | |
Unchanged | 認証レベルでは、以前の設定を保持してください。 |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


AuthenticationLevel 列挙体
アセンブリ: System (system.dll 内)

Public Enumeration AuthenticationLevel

メンバ名 | 説明 | |
---|---|---|
MutualAuthRequested | クライアントとサーバーを認証する必要があります。サーバーが認証されていない場合でも、要求は失敗しません。相互認証が行われたかどうかを確認するには、WebResponse.IsMutuallyAuthenticated プロパティの値をチェックします。 | |
MutualAuthRequired | クライアントとサーバーを認証する必要があります。サーバーが認証されていない場合、相互認証が失敗したことを示す ProtocolViolationException 内部例外と共に、IOException がアプリケーションで発生します。 | |
None | クライアントとサーバーの認証は必要ありません。 |

この列挙体の値は、AuthenticationLevel プロパティを設定するために使用されます。
![]() |
---|
MutualAuthRequired と MutualAuthRequested は、Kerberos 認証に関連する値です。Kerberos 認証は、直接サポートすることも、Negotiate セキュリティ プロトコルを使用して実際のセキュリティ プロトコルを選択する場合に使用することもできます。認証プロトコルの詳細については、「インターネット認証」を参照してください。 |

// The following example uses the System, System.Net, // and System.IO namespaces. public static void RequestMutualAuth(Uri resource) { // Create a new HttpWebRequest object for the specified resource. WebRequest request=(WebRequest) WebRequest.Create(resource); // Request mutual authentication. request.AuthenticationLevel = AuthenticationLevel.MutualAuthRequested; // Supply client credentials. request.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse response = (HttpWebResponse) request.GetResponse(); // Determine whether mutual authentication was used. Console.WriteLine("Is mutually authenticated? {0}", response.IsMutuallyAuthenticated); // Read and display the response. Stream streamResponse = response.GetResponseStream(); StreamReader streamRead = new StreamReader(streamResponse); string responseString = streamRead.ReadToEnd(); Console.WriteLine(responseString); // Close the stream objects. streamResponse.Close(); streamRead.Close(); // Release the HttpWebResponse. response.Close(); }
// The following example uses the System, System.Net, // and System.IO namespaces. static void RequestMutualAuth( Uri^ resource ) { // Create a new HttpWebRequest object for the specified resource. WebRequest^ request = dynamic_cast<WebRequest^>(WebRequest::Create( resource )); // Request mutual authentication. request->AuthenticationLevel = AuthenticationLevel::MutualAuthRequested; // Supply client credentials. request->Credentials = CredentialCache::DefaultCredentials; HttpWebResponse^ response = dynamic_cast<HttpWebResponse^>(request->GetResponse()); // Determine whether mutual authentication was used. Console::WriteLine( L"Is mutually authenticated? {0}", response->IsMutuallyAuthenticated ); // Read and display the response. Stream^ streamResponse = response->GetResponseStream(); StreamReader^ streamRead = gcnew StreamReader( streamResponse ); String^ responseString = streamRead->ReadToEnd(); Console::WriteLine( responseString ); // Close the stream objects. streamResponse->Close(); streamRead->Close(); // Release the HttpWebResponse. response->Close(); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からAuthenticationLevelを検索する場合は、下記のリンクをクリックしてください。

- AuthenticationLevelのページへのリンク