public class EcContact extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
displayName
Display Name of the contact
|
EcPk |
pk
Public Key of the contact
|
String |
source
URL to the home server of the contact
|
| Constructor and Description |
|---|
EcContact() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Comparison method that checks if the key is the same as another EcContact
|
static EcContact |
fromEncryptedContact(EbacContact contact,
String secret,
String source)
Helper function to decrypt an encrypted contact (storable version of an contact)
into an contact
|
String |
getImageUrl()
Returns the URL to generic image that should be displayed for the contact
|
EbacContact |
toEncryptedContact(String secret)
Helper function to encrypt a contact into an encrypted contact (storable
version of a contact)
|
public EcPk pk
public String displayName
public String source
public static EcContact fromEncryptedContact(EbacContact contact, String secret, String source)
{EbacContact} - contact
Contact to decrypt.{String} - secret
AES secret used to decrypt the credential.{String} - source
Source of the credential, used to track where a contact
came from.public boolean equals(Object obj)
public String getImageUrl()
public EbacContact toEncryptedContact(String secret)
{String} - secret
AES secret used to encrypt the contact.Copyright © 2018 Eduworks Corporation. All rights reserved.