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

HashAlgorithmType 列挙体

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

メッセージ認証コード (MAC: Message Authentication Code) の生成使用するアルゴリズム指定します

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

Dim instance As HashAlgorithmType
public enum HashAlgorithmType
public enum class HashAlgorithmType
public enum HashAlgorithmType
public enum HashAlgorithmType
メンバメンバ
解説解説

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

使用例使用例

認証成功した後に 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 名前空間
HashStrength



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

辞書ショートカット

すべての辞書の索引

「HashAlgorithmType 列挙体」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS