Class CertificateStats
Certificate stats.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CertificateStats : BaseStats, IEquivalent<CertificateStats>
Properties
CertificateBase64
Gets the certificate in Base64 format.
Declaration
public string CertificateBase64 { get; }
Property Value
Type | Description |
---|---|
System.String |
Fingerprint
Gets the fingerprint.
Declaration
public string Fingerprint { get; }
Property Value
Type | Description |
---|---|
System.String |
FingerprintAlgorithm
Gets the fingerprint algorithm.
Declaration
public string FingerprintAlgorithm { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Derializes certificate stats from JSON.
Declaration
public static CertificateStats FromJson(string certificateJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificateJson | The certificate's stats JSON. |
Returns
Type | Description |
---|---|
CertificateStats |
FromJsonArray(String)
Derializes an array of certificate stats from JSON.
Declaration
public static CertificateStats[] FromJsonArray(string certificatesJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificatesJson | The certificates' stats JSON. |
Returns
Type | Description |
---|---|
CertificateStats[] |
IsEquivalent(CertificateStats)
Checks if a certificate is equivalent to this one.
Declaration
public bool IsEquivalent(CertificateStats instance)
Parameters
Type | Name | Description |
---|---|---|
CertificateStats | instance | The certificate. |
Returns
Type | Description |
---|---|
System.Boolean |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(CertificateStats)
Serializes certificate stats to JSON.
Declaration
public static string ToJson(CertificateStats certificate)
Parameters
Type | Name | Description |
---|---|---|
CertificateStats | certificate | The certificate's stats. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(CertificateStats[])
Serializes an array of certificate stats to JSON.
Declaration
public static string ToJsonArray(CertificateStats[] certificates)
Parameters
Type | Name | Description |
---|---|---|
CertificateStats[] | certificates | The certificates' stats. |
Returns
Type | Description |
---|---|
System.String |