다음을 통해 공유


CmsSigner 생성자

정의

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

오버로드

CmsSigner()

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

CmsSigner(CspParameters)
사용되지 않음.

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

CmsSigner(SubjectIdentifierType)

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

CmsSigner(X509Certificate2)

지정된 서명자 인증서가 있는 CmsSigner 클래스의 새 인스턴스를 초기화합니다.

CmsSigner(SubjectIdentifierType, X509Certificate2)

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

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

지정된 서명자 인증서, 주제 식별자 유형 및 프라이빗 키 개체를 사용하여 CmsSigner 클래스의 새 인스턴스를 초기화합니다.

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

지정된 서명자 인증서, 주체 식별자 유형, 프라이빗 키 개체 및 RSA 서명 패딩을 사용하여 CmsSigner 클래스의 새 instance 초기화합니다.

CmsSigner()

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

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

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

설명

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

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

적용 대상

CmsSigner(CspParameters)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

주의

CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.

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

public:
 CmsSigner(System::Security::Cryptography::CspParameters ^ parameters);
[System.Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId="SYSLIB0034", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public CmsSigner (System.Security.Cryptography.CspParameters parameters);
public CmsSigner (System.Security.Cryptography.CspParameters parameters);
[<System.Obsolete("CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead.", DiagnosticId="SYSLIB0034", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.Pkcs.CmsSigner : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.Pkcs.CmsSigner
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+ 전용: 모든 경우

설명

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

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

중요

이 메서드는 .NET Framework만 지원됩니다. .NET Core에서의 사용은 을 PlatformNotSupportedExceptionthrow합니다.

적용 대상

CmsSigner(SubjectIdentifierType)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

지정된 주체 식별자 유형을 사용하여 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

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

설명

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

속성 기본값
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None가 이면 SignerIdentifierType 입니다.SubjectIdentifierType.NoSignature

X509IncludeOption.ExcludeRoot 그렇지 않으면

적용 대상

CmsSigner(X509Certificate2)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

지정된 서명자 인증서가 있는 CmsSigner 클래스의 새 인스턴스를 초기화합니다.

public:
 CmsSigner(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
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

메시지에 서명하는 데 사용할 프라이빗 키가 있는 인증서입니다.

설명

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

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

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

적용 대상

CmsSigner(SubjectIdentifierType, X509Certificate2)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

지정된 서명자 인증서 및 주제 식별자 유형을 사용하여 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);
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

메시지에 서명하는 데 사용할 프라이빗 키가 있는 인증서입니다.

설명

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

속성 기본값
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None가 이면 SignerIdentifierType 입니다.SubjectIdentifierType.NoSignature

X509IncludeOption.ExcludeRoot 그렇지 않으면

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

적용 대상

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

지정된 서명자 인증서, 주제 식별자 유형 및 프라이빗 키 개체를 사용하여 CmsSigner 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

signerIdentifierType
SubjectIdentifierType

사용된 서명 인증서를 식별하는 데 사용할 체계를 지정하는 열거형 값 중 하나입니다.

certificate
X509Certificate2

메시지에 서명하는 데 사용할 프라이빗 키가 있는 인증서입니다.

privateKey
AsymmetricAlgorithm

메시지에 서명할 때 사용할 프라이빗 키 개체입니다.

설명

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

속성 기본값
DigestAlgorithm 2.16.840.1.101.3.4.2.1(SHA-256)
IncludeOption X509IncludeOption.None가 이면 SignerIdentifierType 입니다.SubjectIdentifierType.NoSignature

X509IncludeOption.ExcludeRoot 그렇지 않으면

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

이 생성자는 매개 변수가 의 privateKey 공개 키 certificate에 해당하는지 확인하지 않습니다. 키가 일치하지 않으면 클래스와 ComputeCounterSignature(CmsSigner) 메서드가 SignedCms 서명 프로세스 중에 을 CryptographicException throw합니다.

적용 대상

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs
Source:
CmsSigner.cs

지정된 서명자 인증서, 주체 식별자 유형, 프라이빗 키 개체 및 RSA 서명 패딩을 사용하여 CmsSigner 클래스의 새 instance 초기화합니다.

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

매개 변수

signerIdentifierType
SubjectIdentifierType

사용된 서명 인증서를 식별하는 데 사용할 체계를 지정하는 열거형 값 중 하나입니다.

certificate
X509Certificate2

메시지에 서명하는 데 사용할 프라이빗 키가 있는 인증서입니다.

privateKey
RSA

메시지에 서명할 때 사용할 프라이빗 키 개체입니다.

signaturePadding
RSASignaturePadding

사용할 RSA 서명 패딩입니다.

적용 대상