CmsRecipient 생성자

정의

CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

오버로드

CmsRecipient(X509Certificate2)

공개 키 알고리즘과 IssuerAndSerialNumber 주체 식별자에 대해 기본 암호화 모드를 사용하여 지정된 인증서로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

CmsRecipient(SubjectIdentifierType, X509Certificate2)

공개 키 알고리즘에 대해 기본 암호화 모드를 사용하여 지정된 인증서와 수신자 식별자 유형으로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

IssuerAndSerialNumber 주제 식별자를 사용하여 지정된 RSA 인증서와 RSA 암호화 패딩으로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

지정된 RSA 인증서, RSA 암호화 패딩 및 주제 식별자를 사용하여 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

CmsRecipient(X509Certificate2)

공개 키 알고리즘과 IssuerAndSerialNumber 주체 식별자에 대해 기본 암호화 모드를 사용하여 지정된 인증서로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsRecipient(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public CmsRecipient (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (certificate As X509Certificate2)

매개 변수

certificate
X509Certificate2

이 수신자에게 맞게 암호화할 때 사용할 인증서입니다.

예외

certificate 매개 변수가 null인 경우

설명

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

속성 기본값
RecipientIdentifierType IssuerAndSerialNumber
RSAEncryptionPadding null

추가 정보

적용 대상

CmsRecipient(SubjectIdentifierType, X509Certificate2)

공개 키 알고리즘에 대해 기본 암호화 모드를 사용하여 지정된 인증서와 수신자 식별자 유형으로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsRecipient(System::Security::Cryptography::Pkcs::SubjectIdentifierType recipientIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public CmsRecipient (System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (recipientIdentifierType As SubjectIdentifierType, certificate As X509Certificate2)

매개 변수

recipientIdentifierType
SubjectIdentifierType

사용된 수신자 인증서를 식별하는 데 사용할 체계입니다.

certificate
X509Certificate2

이 수신자에게 맞게 암호화할 때 사용할 인증서입니다.

예외

certificate 매개 변수가 null인 경우

recipientIdentifierType 값은 지원되지 않습니다.

추가 정보

적용 대상

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

IssuerAndSerialNumber 주제 식별자를 사용하여 지정된 RSA 인증서와 RSA 암호화 패딩으로 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsRecipient(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::RSAEncryptionPadding ^ rsaEncryptionPadding);
public CmsRecipient (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.RSAEncryptionPadding -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (certificate As X509Certificate2, rsaEncryptionPadding As RSAEncryptionPadding)

매개 변수

certificate
X509Certificate2

이 수신자에게 맞게 암호화할 때 사용할 인증서입니다.

rsaEncryptionPadding
RSAEncryptionPadding

이 수신자에 맞게 암호화할 때 사용할 RSA 패딩 모드입니다.

예외

certificate 또는 rsaEncryptionPadding 매개 변수가 null인 경우

certificate 매개 변수 공개 키가 RSA 공개 키로 인식되지 않습니다.

또는

recipientIdentifierType 값은 지원되지 않습니다.

설명

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

속성 기본값
RecipientIdentifierType IssuerAndSerialNumber

적용 대상

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

지정된 RSA 인증서, RSA 암호화 패딩 및 주제 식별자를 사용하여 CmsRecipient 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsRecipient(System::Security::Cryptography::Pkcs::SubjectIdentifierType recipientIdentifierType, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::Security::Cryptography::RSAEncryptionPadding ^ rsaEncryptionPadding);
public CmsRecipient (System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding);
new System.Security.Cryptography.Pkcs.CmsRecipient : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.RSAEncryptionPadding -> System.Security.Cryptography.Pkcs.CmsRecipient
Public Sub New (recipientIdentifierType As SubjectIdentifierType, certificate As X509Certificate2, rsaEncryptionPadding As RSAEncryptionPadding)

매개 변수

recipientIdentifierType
SubjectIdentifierType

사용된 수신자 인증서를 식별하는 데 사용할 체계입니다.

certificate
X509Certificate2

이 수신자에게 맞게 암호화할 때 사용할 인증서입니다.

rsaEncryptionPadding
RSAEncryptionPadding

이 수신자에 맞게 암호화할 때 사용할 RSA 패딩 모드입니다.

예외

certificate 또는 rsaEncryptionPadding 매개 변수가 null인 경우

certificate 매개 변수 공개 키가 RSA 공개 키로 인식되지 않습니다.

추가 정보

적용 대상