Class SignedAttributes
Helps collecting commonly used attributes.
Inheritance
Inherited Members
Namespace: Sig.Crypto
Assembly: SigCrypto.dll
Syntax
public class SignedAttributes
Constructors
| Name | Description |
|---|---|
| SignedAttributes(Byte[]) | Constructs a new signed attributes object with the given content digest. Throws System.ArgumentNullException if the input is null. |
Methods
| Name | Description |
|---|---|
| AddBioBlocks(Byte[], Byte[]) | Adds encoded biodata and a key to the attributes. |
| AddBioText(Byte[], String) | Adds textual biodata and a corresponding key to the attributes. |
| AddDeviceName(String) | Add a device number as a device name attribute. |
| AddDeviceSerialNumber(String) | Add a serial number as a device serial number attribute. |
| AddDeviceTime(DateTime) | Adds a time as a device time attribute. |
| AddDriverCertificate(Byte[]) | Adds a driver certificate as a driver certificate attribute. |
| AddFirmwareVersion(String) | Adds a firmware version as a device firmware version attribute. |
| AddNotaryCert(X509Certificate2) | Adds a notary certificate to the attributes. |
| AddNotaryInfo(String) | Adds textual info about the notary to the attributes. |
| AddNotaryKey(Byte[]) | Adds a notary key to the attributes. |
| AddOpenState(Int32) | Adds a device open state to the signed attributes. |
| Get() | Gets the attributes. |
| GetMessageDigest(HashAlgorithmName) | Computes the digest over the SignedAttributes. |
| Of(Attributes) | |
| Of(Byte[]) | Constructs a new signed attributes object with the given content digest. |
Operators
| Name | Description |
|---|---|
| Implicit(SignedAttributes to Attributes) | Implicit type converion to Asn1.Cms.Attributes. |