12 [CollectionName(
"LegalIdentityStates")]
14 [Index(
"BareJid",
"LegalId")]
15 [Index(
"BareJid",
"State",
"Timestamp")]
19 private string objectId =
null;
22 private byte[] publicKey =
null;
24 private DateTime timestamp = DateTime.MinValue;
49 set => this.objectId = value;
58 set => this.bareJid = value;
67 set => this.legalId = value;
76 get => this.publicKey;
77 set => this.publicKey = value;
86 set => this.state = value;
94 get => this.timestamp;
95 set => this.timestamp = value;
101 StringBuilder sb =
new StringBuilder();
103 sb.Append(this.bareJid);
105 sb.Append(this.legalId);
107 sb.Append(this.state.ToString());
109 sb.Append(this.timestamp.ToString());
111 if (!(this.publicKey is
null))
114 sb.Append(Convert.ToBase64String(
this.publicKey));
117 return sb.ToString();
Contains information about a legal identity generated by the client.
CaseInsensitiveString BareJid
Bare JID of client applying for the identity.
DateTime Timestamp
Timestamp when the legal identity was created or last updated.
LegalIdentityState(string LegalId)
Contains information about a legal identity generated by the client.
IdentityState State
State of the legal identity.
CaseInsensitiveString LegalId
Identity string assigned to the legal identity.
override string ToString()
byte[] PublicKey
Public Key used by the cryptographic algororithm used to sign the identity application.
LegalIdentityState()
Contains information about a legal identity generated by the client.
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
IdentityState
Lists recognized legal identity states.
TypeNameSerialization
How the type name should be serialized.