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

CipherAlgorithmType 列挙体

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

SslStream クラス適用可能な暗号アルゴリズム定義します

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

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

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

使用例使用例

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 名前空間
SslStream
CipherStrength



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

辞書ショートカット

すべての辞書の索引

「CipherAlgorithmType 列挙体」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS