Class Facade

Facade

Facade encapsulates the methods in common between Persona and Contacts for use in methods in other classes that can take either class. These classes provide basic information about the related Keychains such as the maturity (blockchain confirmation) level of the two Keychains and the base URI.

The distinction between a Persona and a Contact is that a Passport stores the public and private keys for each Persona whereas for Contacts it only stores (and knows) the public keys of the Contact as recorded on the blockchain. Methods for which this distinction is unimportant generally take Facade as a parameter.

The information from the methods is a static snapshot of the state of the Persona or Contact objects at the time the object was created.

Method Summary

Return type Method and Description

void

finalize()

long

getId()

Get the facade ID

float

getRootMaturity()

Get a maturity measure of the roots of the Facade’s two Keychains

java.lang.String

getSubName()

Get the contact sub name

float

getTipMaturity()

Get a maturity measure of the tips of the Facade’s two Keychains

java.lang.String

getUri()

Get the blockchain URI for the Facade

boolean

isNull()

NULL pattern method

PersonaState

getState()

Get the Facade’s state

boolean

isMature()

Whether the Facade has been fully confirmed on the blockchain as least once in its lifetime