API Docs for: 1.3.12
Show:

EcContact Class

Contact Grant that is used to share your public key with another user

Methods

equals

(
  • obj
)
Boolean

Comparison method that checks if the key is the same as another EcContact

Parameters:

  • obj Object

    Contact to compare if same key

Returns:

Boolean:

true if the key is the same, false if not

fromEncryptedContact

(
  • contact
  • secret
  • source
)
EcContact static

Helper function to decrypt an encrypted contact (storable version of an contact) into an contact

Parameters:

  • contact EbacContact

    Contact to decrypt.

  • secret String

    AES secret used to decrypt the credential.

  • source String

    Source of the credential, used to track where a contact came from.

Returns:

EcContact:

Decrypted identity object, ready for use.

getImageUrl

() String

Returns the URL to generic image that should be displayed for the contact

Returns:

String:

URL of generic image file

toEncryptedContact

(
  • secret
)
EbacContact

Helper function to encrypt a contact into an encrypted contact (storable version of a contact)

Parameters:

  • secret String

    AES secret used to encrypt the contact.

Returns:

EbacContact:

Encrypted contact object.

Properties

displayName

String

Display Name of the contact

pk

EcPk

Public Key of the contact

source

String

URL to the home server of the contact