Global

Methods

getPKCS12Content(fileNameWithPath, cb)

Reads the PKCS12 content from the given file if it exists. If not, the PKCS12 content is generated, saved to a file and the content is returned.

Parameters:
Name Type Description
fileNameWithPath String

the file which has the PKCS12 content.

cb function

the callback which returns an error or PKCS12 content.

Source:

getPublicKeyHash(cb)

Checks if a PKCS12 file exists in a known location and if not present, it is created. The public key is extracted from the PKCS12 content and it's SHA256 hash value is returned.

Parameters:
Name Type Description
cb function

the callback which returns an error or the hash value.

Source:

stopThaliReplicationManager(thaliReplicationManager) → {Promise|exports|module.exports}

This function is intended primarily for teardown where we want to stop the Thali Replication Manager and if we never started it, that's o.k. we just want a NOP. That is normally a great way to hide programming errors.

Parameters:
Name Type Description
thaliReplicationManager
Source:
Returns:
Type
Promise | exports | module.exports

ThaliEmitter()

Creates a new instance of the ThaliEmitter which is an EventEmitter to call the underlying native layer.

Source: