MessageSigner Constructor (X509Certificate2) |
Initializes a new instance of the MessageSigner class from signer certificate and
default hash algorithm. Default hash algorithm is SHA256.
Namespace:
SysadminsLV.PKI.Tools.MessageOperations
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public MessageSigner(
X509Certificate2 signer
)
Public Sub New (
signer As X509Certificate2
)
public:
MessageSigner(
X509Certificate2^ signer
)
new :
signer : X509Certificate2 -> MessageSigner
Parameters
- signer
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
[Missing <param name="signer"/> documentation for "M:SysadminsLV.PKI.Tools.MessageOperations.MessageSigner.#ctor(System.Security.Cryptography.X509Certificates.X509Certificate2)"]
Exceptions Exception | Condition |
---|
ArgumentException | hashAlgorithm parameter contains invalid hash algorithm identifier.
|
UninitializedObjectException | Signer certificate is not initialized. |
ArgumentNullException | signer parameter is null.
|
See Also