SignedCms.Decode メソッドとは? わかりやすく解説

SignedCms.Decode メソッド

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

Decode メソッドは、エンコードされた SignedCms メッセージデコードます。デコード正常に実行され場合デコードされた情報SignedCms オブジェクトプロパティから取得できます

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

Public Sub Decode ( _
    encodedMessage As Byte() _
)
Dim instance As SignedCms
Dim encodedMessage As Byte()

instance.Decode(encodedMessage)
public void Decode (
    byte[] encodedMessage
)
public:
void Decode (
    array<unsigned char>^ encodedMessage
)
public void Decode (
    byte[] encodedMessage
)
public function Decode (
    encodedMessage : byte[]
)

パラメータ

encodedMessage

デコードするエンコード済み CMS/PKCS #7 メッセージを表すバイト配列

例外例外
例外種類条件

ArgumentNullException

null 参照有効な引数として受け付けないメソッドnull 参照渡されました。

CryptographicException

暗号操作完了できませんでした

解説解説
使用例使用例

SignedCms メッセージ署名検証するプロセスDecode メソッド配置する例を次に示します。この例では、メッセージ内容分離されていないので、メッセージ内容SignedCms メッセージ含まれます。

' Create a new, nondetached SignedCms message.
Dim signedCms As New SignedCms()

' encodedMessage is the encoded message received from 
' the sender.
signedCms.Decode(encodedMessage)

' Verify the signature without validating the 
' certificate.
signedCms.CheckSignature(True)
// Create a new, nondetached SignedCms message.
SignedCms signedCms = new SignedCms();

// encodedMessage is the encoded message received from 
// the sender.
signedCms.Decode(encodedMessage);

// Verify the signature without validating the 
// certificate.
signedCms.CheckSignature(true);

SignedCms メッセージ署名検証するプロセスDecode メソッド配置する例を次に示します。この例では、メッセージ内容分離されているので、メッセージ内容SignedCms メッセージとは別に検証する必要があります

' Create a ContentInfo object from the inner content obtained 
' independently from encodedMessage.
Dim contentInfo As New ContentInfo(innerContent)

' Create a new, detached SignedCms message.
Dim signedCms As New SignedCms(contentInfo,
 True)

' encodedMessage is the encoded message received from 
' the sender.
signedCms.Decode(encodedMessage)

' Verify the signature without validating the 
' certificate.
signedCms.CheckSignature(True)
// Create a ContentInfo object from the inner content obtained 
// independently from encodedMessage.
ContentInfo contentInfo = new ContentInfo(innerContent);

// Create a new, detached SignedCms message.
SignedCms signedCms = new SignedCms(contentInfo, true);

// encodedMessage is the encoded message received from 
// the sender.
signedCms.Decode(encodedMessage);

// Verify the signature without validating the 
// certificate.
signedCms.CheckSignature(true);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SignedCms クラス
SignedCms メンバ
System.Security.Cryptography.Pkcs 名前空間
Encode


このページでは「.NET Framework クラス ライブラリ リファレンス」からSignedCms.Decode メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSignedCms.Decode メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSignedCms.Decode メソッド を検索

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

辞書ショートカット

すべての辞書の索引

SignedCms.Decode メソッドのお隣キーワード
検索ランキング

   

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



SignedCms.Decode メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS