Class CertificateInfo
Certificate information.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CertificateInfo : Info
Constructors
CertificateInfo()
Initializes a new instance of the CertificateInfo class.
Declaration
public CertificateInfo()
Properties
Base64
Gets or sets the certificate in Base64 format.
Declaration
public string Base64 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Fingerprint
Gets or sets the certificate fingerprint.
Declaration
public string Fingerprint { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FingerprintAlgorithm
Gets or sets the certificate fingerprint algorithm.
Declaration
public string FingerprintAlgorithm { get; set; }
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)
Deserializes an instance from JSON.
Declaration
public static CertificateInfo FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceJson | The instance JSON. |
Returns
Type | Description |
---|---|
CertificateInfo | The deserialized instance. |
FromJsonArray(String)
Derializes an array from JSON.
Declaration
public static CertificateInfo[] FromJsonArray(string arrayJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | arrayJson | The array JSON. |
Returns
Type | Description |
---|---|
CertificateInfo[] | The deserialized array. |
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 instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(CertificateInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(CertificateInfo instance)
Parameters
Type | Name | Description |
---|---|---|
CertificateInfo | instance | The instance. |
Returns
Type | Description |
---|---|
System.String | The serialized instance JSON. |
ToJsonArray(CertificateInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(CertificateInfo[] array)
Parameters
Type | Name | Description |
---|---|---|
CertificateInfo[] | array | The array. |
Returns
Type | Description |
---|---|
System.String | The serialized array JSON. |