ContentInfo コンストラクター

定義

ContentInfo クラスのインスタンスを作成します。

オーバーロード

名前 説明
ContentInfo(Byte[])

ContentInfo(Byte[]) コンストラクターは、データとしてバイト値の配列と、コンテンツ タイプを表す既定のオブジェクト識別子 (OID) を使用して、ContentInfo クラスのインスタンスを作成します。

ContentInfo(Oid, Byte[])

ContentInfo(Oid, Byte[]) コンストラクターは、指定したコンテンツ タイプとバイト値の配列をデータとして使用して、ContentInfo クラスのインスタンスを作成します。

ContentInfo(Byte[])

ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs

ContentInfo(Byte[]) コンストラクターは、データとしてバイト値の配列と、コンテンツ タイプを表す既定のオブジェクト識別子 (OID) を使用して、ContentInfo クラスのインスタンスを作成します。

public:
 ContentInfo(cli::array <System::Byte> ^ content);
public ContentInfo(byte[] content);
new System.Security.Cryptography.Pkcs.ContentInfo : byte[] -> System.Security.Cryptography.Pkcs.ContentInfo
Public Sub New (content As Byte())

パラメーター

content
Byte[]

ContentInfo オブジェクトの作成元となるデータを表すバイト値の配列。

例外

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

注釈

ContentInfo クラスには、次の既定のプロパティ値があります。

財産 既定値
ContentType 1.2.840.113549.1.7.1 (データ)

適用対象

ContentInfo(Oid, Byte[])

ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs

ContentInfo(Oid, Byte[]) コンストラクターは、指定したコンテンツ タイプとバイト値の配列をデータとして使用して、ContentInfo クラスのインスタンスを作成します。

public:
 ContentInfo(System::Security::Cryptography::Oid ^ contentType, cli::array <System::Byte> ^ content);
public ContentInfo(System.Security.Cryptography.Oid contentType, byte[] content);
new System.Security.Cryptography.Pkcs.ContentInfo : System.Security.Cryptography.Oid * byte[] -> System.Security.Cryptography.Pkcs.ContentInfo
Public Sub New (contentType As Oid, content As Byte())

パラメーター

contentType
Oid

コンテンツのコンテンツ タイプを指定するOid (OID) を含むobject identifier オブジェクト。 データ、digestedData、encryptedData、envelopedData、hashedData、signedAndEnvelopedData、または signedData を指定できます。 詳細については、「解説」を参照してください。

content
Byte[]

ContentInfo オブジェクトの作成元となるデータを表すバイト値の配列。

例外

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

注釈

CMS/PKCS #7 標準ドキュメントに記載されている digestedData コンテンツ タイプと encryptedData コンテンツ タイプは、この実装で生成できるコンテンツ タイプではありません。 ただし、これらのコンテンツ タイプは、このコンストラクターに渡すことができます。

ContentInfo(Oid, Byte[]) コンテンツ タイプ パラメーターを作成するには、contentType コンストラクターの引数として次の OID 文字列を使用します。

contentType コンテンツ タイプ OID 文字列
データ 1.2.840.113549.1.7.1
digestedData 1.2.840.113549.1.7.5
encryptedData 1.2.840.113549.1.7.6
envelopedData 1.2.840.113549.1.7.3
hashedData 1.2.840.113549.1.7.5
signedAndEnvelopedData 1.2.840.113549.1.7.4
signedData 1.2.840.113549.1.7.2

適用対象