forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignature.cs
More file actions
40 lines (35 loc) · 840 Bytes
/
Signature.cs
File metadata and controls
40 lines (35 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Networking.XMPP.Contracts
{
/// <summary>
/// Abstract base class of signatures
/// </summary>
public abstract class Signature
{
private DateTime timestamp = DateTime.MinValue;
private byte[] digitalSignature = null;
/// <summary>
/// Timestamp of signature.
/// </summary>
public DateTime Timestamp
{
get => this.timestamp;
set => this.timestamp = value;
}
/// <summary>
/// Digital Signature
/// </summary>
public byte[] DigitalSignature
{
get => this.digitalSignature;
set => this.digitalSignature = value;
}
/// <summary>
/// Serializes the signature, in normalized form.
/// </summary>
/// <param name="Xml">XML Output</param>
public abstract void Serialize(StringBuilder Xml);
}
}