ExchangeAlgorithmType 列挙体とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ExchangeAlgorithmType 列挙体の意味・解説 

ExchangeAlgorithmType 列挙体

メモ : この列挙体は、.NET Framework version 2.0新しく追加されたものです。

クライアントサーバー共有するキー作成するために使用するアルゴリズム指定します

名前空間: System.Security.Authentication
アセンブリ: System (system.dll 内)
構文構文

Public Enumeration ExchangeAlgorithmType
Dim instance As ExchangeAlgorithmType
public enum ExchangeAlgorithmType
public enum class ExchangeAlgorithmType
public enum ExchangeAlgorithmType
public enum ExchangeAlgorithmType
メンバメンバ
解説解説

この列挙体は、SslStream.KeyExchangeAlgorithm プロパティの有効値を指定します

使用例使用例

SslStream のプロパティ表示する例を次に示します

static void AuthenticateCallback(IAsyncResult
 ar)
{
    SslStream stream = (SslStream) ar.AsyncState;
    try 
    {
        stream.EndAuthenticateAsClient(ar);
        Console.WriteLine("Authentication succeeded.");
        Console.WriteLine("Cipher: {0} strength {1}", stream.CipherAlgorithm,
 
            stream.CipherStrength);
        Console.WriteLine("Hash: {0} strength {1}", 
            stream.HashAlgorithm, stream.HashStrength);
        Console.WriteLine("Key exchange: {0} strength {1}", 
            stream.KeyExchangeAlgorithm, stream.KeyExchangeStrength);
        Console.WriteLine("Protocol: {0}", stream.SslProtocol);
        // Encode a test message into a byte array.
        // Signal the end of the message using the "<EOF>".
        byte[] message = Encoding.UTF8.GetBytes("Hello from the client.<EOF>");
        // Asynchronously send a message to the server.
        stream.BeginWrite(message, 0, message.Length, 
            new AsyncCallback(WriteCallback),
            stream);
    }
    catch (Exception authenticationException)
    {
        e = authenticationException;
        complete = true;
        return;
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
System.Security.Authentication 名前空間
KeyExchangeStrength



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ExchangeAlgorithmType 列挙体」の関連用語

ExchangeAlgorithmType 列挙体のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ExchangeAlgorithmType 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS