fm.liveswitch.CertificateStats Class Reference

Certificate stats. More...

Public Member Functions

 CertificateStats ()
 
String getCertificateBase64 ()
 Gets the certificate in Base64 format. More...
 
String getFingerprint ()
 Gets the fingerprint. More...
 
String getFingerprintAlgorithm ()
 Gets the fingerprint algorithm. More...
 
boolean isEquivalent (fm.liveswitch.CertificateStats instance)
 Checks if a certificate is equivalent to this one. More...
 
String toJson ()
 Serializes this to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.BaseStats
String getId ()
 Gets the identifier of the object generating these stats. More...
 
java.util.Date getTimestamp ()
 Gets the timestamp when these stats were generated. More...
 
- Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.CertificateStats >
abstract boolean isEquivalent (T instance)
 Checks if an instance is equivalent to this one. More...
 

Static Public Member Functions

static fm.liveswitch.CertificateStats fromJson (String certificateJson)
 Derializes certificate stats from JSON. More...
 
static fm.liveswitch.CertificateStats[] fromJsonArray (String certificatesJson)
 Derializes an array of certificate stats from JSON. More...
 
static String toJson (fm.liveswitch.CertificateStats certificate)
 Serializes certificate stats to JSON. More...
 
static String toJsonArray (fm.liveswitch.CertificateStats[] certificates)
 Serializes an array of certificate stats to JSON. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 
- Protected Member Functions inherited from fm.liveswitch.BaseStats
 BaseStats ()
 

Detailed Description

Certificate stats.

Constructor & Destructor Documentation

◆ CertificateStats()

fm.liveswitch.CertificateStats.CertificateStats ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.CertificateStats.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.BaseStats.

◆ fromJson()

static fm.liveswitch.CertificateStats fm.liveswitch.CertificateStats.fromJson ( String  certificateJson)
static

Derializes certificate stats from JSON.

Parameters
certificateJsonThe certificate's stats JSON.

◆ fromJsonArray()

static fm.liveswitch.CertificateStats [] fm.liveswitch.CertificateStats.fromJsonArray ( String  certificatesJson)
static

Derializes an array of certificate stats from JSON.

Parameters
certificatesJsonThe certificates' stats JSON.

◆ getCertificateBase64()

String fm.liveswitch.CertificateStats.getCertificateBase64 ( )

Gets the certificate in Base64 format.

◆ getFingerprint()

String fm.liveswitch.CertificateStats.getFingerprint ( )

Gets the fingerprint.

◆ getFingerprintAlgorithm()

String fm.liveswitch.CertificateStats.getFingerprintAlgorithm ( )

Gets the fingerprint algorithm.

◆ isEquivalent()

boolean fm.liveswitch.CertificateStats.isEquivalent ( fm.liveswitch.CertificateStats  instance)

Checks if a certificate is equivalent to this one.

Parameters
instanceThe certificate.

◆ serializeProperties()

void fm.liveswitch.CertificateStats.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ toJson() [1/2]

String fm.liveswitch.CertificateStats.toJson ( )

Serializes this to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.CertificateStats.toJson ( fm.liveswitch.CertificateStats  certificate)
static

Serializes certificate stats to JSON.

Parameters
certificateThe certificate's stats.

◆ toJsonArray()

static String fm.liveswitch.CertificateStats.toJsonArray ( fm.liveswitch.CertificateStats[]  certificates)
static

Serializes an array of certificate stats to JSON.

Parameters
certificatesThe certificates' stats.