CmsSigner 생성자

정의

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

오버로드

Name Description
CmsSigner()

기본값을 사용하여 클래스의 새 인스턴스를 CmsSigner 초기화합니다.

CmsSigner(CspParameters)

지속형 키에서 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

CmsSigner(SubjectIdentifierType)

지정된 주체 식별자 형식을 CmsSigner 사용하여 클래스의 새 인스턴스를 초기화합니다.

CmsSigner(X509Certificate2)

지정된 서명자 인증서를 사용하여 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

CmsSigner(SubjectIdentifierType, X509Certificate2)

지정된 서명자 인증서 및 주체 식별자 형식을 사용하여 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

CmsSigner()

기본값을 사용하여 클래스의 새 인스턴스를 CmsSigner 초기화합니다.

public:
 CmsSigner();
public CmsSigner();
Public Sub New ()

설명

이 생성자는 다음과 같은 기본 속성 값을 생성합니다.

Property 기본값
SignerIdentifierType SubjectIdentifierType.IssuerAndSerialNumber
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.ExcludeRoot

적용 대상

CmsSigner(CspParameters)

지속형 키에서 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

public:
 CmsSigner(System::Security::Cryptography::CspParameters ^ parameters);
public CmsSigner(System.Security.Cryptography.CspParameters parameters);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (parameters As CspParameters)

매개 변수

parameters
CspParameters

사용할 서명 키를 설명하는 CSP 매개 변수입니다.

예외

.NET Core 및 .NET 5+만: 모든 경우에.

설명

이 생성자는 다음과 같은 기본 속성 값을 생성합니다.

Property 기본값
SignerIdentifierType SubjectIdentifierType.SubjectKeyIdentifier
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None

Important

이 메서드는 .NET Framework에서만 지원됩니다. .NET Core에서 사용하면 PlatformNotSupportedException 예외를 던집니다.

적용 대상

CmsSigner(SubjectIdentifierType)

지정된 주체 식별자 형식을 CmsSigner 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsSigner(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public CmsSigner(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.CmsSigner
Public Sub New (signerIdentifierType As SubjectIdentifierType)

매개 변수

signerIdentifierType
SubjectIdentifierType

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

설명

이 생성자는 다음과 같은 기본 속성 값을 생성합니다.

Property 기본값
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None SignerIdentifierTypeSubjectIdentifierType.NoSignature이면,

X509IncludeOption.ExcludeRoot 그렇지 않으면

적용 대상

CmsSigner(X509Certificate2)

지정된 서명자 인증서를 사용하여 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

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

매개 변수

certificate
X509Certificate2

프라이빗 키를 사용하여 메시지에 서명하는 인증서입니다.

설명

이 생성자는 다음과 같은 기본 속성 값을 생성합니다.

Property 기본값
SignerIdentifierType SubjectIdentifierType.IssuerAndSerialNumber
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.ExcludeRoot

매개 변수에 지정된 서명 인증서가 certificate 입력의 유효성을 검사하지 않습니다. 이 생성자에 인증서를 공급하기 전에 인증서의 유효성을 검사하려면 이 메서드를 X509Chain.Build 사용합니다.

적용 대상

CmsSigner(SubjectIdentifierType, X509Certificate2)

지정된 서명자 인증서 및 주체 식별자 형식을 사용하여 클래스의 CmsSigner 새 인스턴스를 초기화합니다.

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

매개 변수

signerIdentifierType
SubjectIdentifierType

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

certificate
X509Certificate2

프라이빗 키를 사용하여 메시지에 서명하는 인증서입니다.

설명

이 생성자는 다음과 같은 기본 속성 값을 생성합니다.

Property 기본값
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None SignerIdentifierTypeSubjectIdentifierType.NoSignature이면,

X509IncludeOption.ExcludeRoot 그렇지 않으면

매개 변수에 지정된 서명 인증서가 certificate 입력의 유효성을 검사하지 않습니다. 이 생성자에 인증서를 공급하기 전에 인증서의 유효성을 검사하려면 이 메서드를 X509Chain.Build 사용합니다.

적용 대상