다음을 통해 공유


ContentInfo 생성자

정의

ContentInfo 클래스의 인스턴스를 만듭니다.

오버로드

ContentInfo(Byte[])

ContentInfo(Byte[]) 생성자는 바이트 값 배열 ContentInfo 을 데이터로 사용하고 콘텐츠 형식을 나타내는 기본값 object identifier (OID)을 사용하여 클래스의 instance 만듭니다.

ContentInfo(Oid, Byte[])

ContentInfo(Oid, Byte[]) 생성자는 지정된 콘텐츠 형식과 바이트 값 배열을 ContentInfo 데이터로 사용하여 클래스의 instance 만듭니다.

ContentInfo(Byte[])

Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs

ContentInfo(Byte[]) 생성자는 바이트 값 배열 ContentInfo 을 데이터로 사용하고 콘텐츠 형식을 나타내는 기본값 object identifier (OID)을 사용하여 클래스의 instance 만듭니다.

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 참조를 유효한 인수로 사용하지 않는 메서드에 null 참조가 전달된 경우

설명

클래스에는 ContentInfo 다음과 같은 기본 속성 값이 있습니다.

속성 기본값
ContentType 1.2.840.113549.1.7.1(데이터)

적용 대상

ContentInfo(Oid, Byte[])

Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs

ContentInfo(Oid, Byte[]) 생성자는 지정된 콘텐츠 형식과 바이트 값 배열을 ContentInfo 데이터로 사용하여 클래스의 instance 만듭니다.

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 콘텐츠의 콘텐츠 형식을 지정하는 object identifier (OID)를 포함하는 개체입니다. 이 개체는 data, digestedData, encryptedData, envelopedData, hashedData, signedAndEnvelopedData 또는 signedData일 수 있습니다. 자세한 내용은 설명 부분을 참조하세요.

content
Byte[]

ContentInfo 개체를 만드는 데 사용되는 데이터를 나타내는 바이트 값 배열입니다.

예외

null 참조를 유효한 인수로 사용하지 않는 메서드에 null 참조가 전달된 경우

설명

CMS/PKCS #7 표준 문서에 표시되는 digestedData 및 encryptedData 콘텐츠 형식은 이 구현에서 생성할 수 있는 콘텐츠 형식이 아닙니다. 그러나 이러한 콘텐츠 형식은 이 생성자에 전달할 수 있습니다.

다음 OID 문자열을 생성자에 대한 인수 ContentInfo(Oid, Byte[]) 로 사용하여 콘텐츠 형식 매개 변수를 contentType 빌드합니다.

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

적용 대상