SignerInfo Constructor
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9083)
SignerInfo(Certificate)
Creates a new instance of SignerInfo that defines a signer corresponding to the specified certificate. An associated private key for the certificate must be available. Use SignerInfo(Certificate, SignatureParameters) to specify RSASSA-PSS parameters.
Declaration
public SignerInfo(Certificate signerCertificate)
Parameters
Type | Name | Description |
---|---|---|
Certificate | signerCertificate | The signer's certificate. |
SignerInfo(Certificate, SubjectIdentifierType)
Creates a new instance of SignerInfo that defines a signer corresponding to the specified certificate. An associated private key for the certificate must be available. Use SignerInfo(Certificate, SignatureParameters, SubjectIdentifierType) to specify RSASSA-PSS parameters.
Declaration
public SignerInfo(Certificate signerCertificate, SubjectIdentifierType signerIdentifierType)
Parameters
Type | Name | Description |
---|---|---|
Certificate | signerCertificate | The signer's certificate. |
SubjectIdentifierType | signerIdentifierType | Subject identifier type - only IssuerAndSerialNumber and SubjectKeyIdentifier values are accepted. |
SignerInfo(Certificate, SubjectIdentifierType, SignatureHashAlgorithm)
Creates a new instance of SignerInfo that defines a signer corresponding to the specified certificate. An associated private key for the certificate must be available. Use SignerInfo(Certificate, SignatureParameters, SubjectIdentifierType) to specify RSASSA-PSS parameters.
Declaration
public SignerInfo(Certificate signerCertificate, SubjectIdentifierType signerIdentifierType, SignatureHashAlgorithm digestAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
Certificate | signerCertificate | The signer's certificate. |
SubjectIdentifierType | signerIdentifierType | Subject identifier type - only IssuerAndSerialNumber and SubjectKeyIdentifier values are accepted. |
SignatureHashAlgorithm | digestAlgorithm | Digest algorithm. |
SignerInfo(Certificate, SignatureParameters)
Creates a new instance of SignerInfo that defines a signer corresponding to the specified certificate. An associated private key for the certificate must be available.
Declaration
public SignerInfo(Certificate signerCertificate, SignatureParameters signatureParameters)
Parameters
Type | Name | Description |
---|---|---|
Certificate | signerCertificate | The signer's certificate. |
SignatureParameters | signatureParameters | Signature parameters (to specify RSASSA-PSS parameters). Can be null (for PKCS #1). |
SignerInfo(Certificate, SignatureParameters, SubjectIdentifierType)
Creates a new instance of SignerInfo that defines a signer corresponding to the specified certificate using the specified subject identifier type. An associated private key for the certificate must be available.
Declaration
public SignerInfo(Certificate signerCertificate, SignatureParameters signatureParameters, SubjectIdentifierType signerIdentifierType)
Parameters
Type | Name | Description |
---|---|---|
Certificate | signerCertificate | The signer's certificate. |
SignatureParameters | signatureParameters | Signature parameters (to specify RSASSA-PSS parameters). Can be null (for PKCS #1). |
SubjectIdentifierType | signerIdentifierType | Subject identifier type - only IssuerAndSerialNumber and SubjectKeyIdentifier values are accepted. |